Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AthenaQueryPolicy not useful without Glue permissions #1736

Open
aidansteele opened this issue Oct 7, 2020 · 1 comment
Open

AthenaQueryPolicy not useful without Glue permissions #1736

aidansteele opened this issue Oct 7, 2020 · 1 comment
Labels
area/policy-templates contributors/good-first-issue Good first issue for a contributor contributors/welcome Contributors are welcome to work on this

Comments

@aidansteele
Copy link

The AthenaQueryPolicy SAM policy template doesn't work by itself. It requires some glue permissions - the full extent depending on what the principal needs to do.

I haven't been able to find any definitive docs on the minimal viable policy - this guide is the closest I could find. In my experience (and Googling for error messages) shows that most people need glue:GetTable and glue:GetPartitions.

Maybe you'd want to add more - I'm not sure if this policy should have glue:Create*, glue:Delete*, etc. If anything, that could be a different policy template.

Do you want me to submit a PR for this?

@hawflau
Copy link
Contributor

hawflau commented Feb 25, 2021

Hi @aidansteele, thanks for your suggestion. It seems at the very least you'll need glue:GetTable, glue:getPartitions and glue:Partition. You'll also need to add the policy to allow reading the S3 location of the table, and writing query results to a S3 bucket.

We welcome community contributions! Please feel free to submit a PR. Ping me when it's ready for review :)

@hawflau hawflau added contributors/good-first-issue Good first issue for a contributor contributors/welcome Contributors are welcome to work on this and removed type/question labels Feb 25, 2021
@jfuss jfuss removed the type/bug label Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/policy-templates contributors/good-first-issue Good first issue for a contributor contributors/welcome Contributors are welcome to work on this
Projects
None yet
Development

No branches or pull requests

5 participants