-
Notifications
You must be signed in to change notification settings - Fork 4
Adding support for Athena #27
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
Conversation
sean-garvey
commented
Jul 11, 2017
- Added Athena Task and tests
- Edited typos in README.md
* Edited typos in README.md
Code looks good. Still missing something:
|
* Updated test_validate.py to include test for athena schema * Added athena passing test schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @sean-garvey !
I will wait to approve until we are able to test in AWS.
* Updated README.md to reflect change in schema * Updated athena_task.yml to remove unrequired parameters * Updated test_task_runner.py to remove unrequired parameters from the athena task * Updated template.cfn.yml to add S3 permissions necessary for Athena
lambda_cron/schema.json
Outdated
}, | ||
"required": ["EncryptionOption"] | ||
} | ||
"OutputLocation": { "type": "string" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the options "ClientRequestToken" and "QueryExecutionContext": http://boto3.readthedocs.io/en/latest/reference/services/athena.html#Athena.Client.start_query_execution ?
They are not required but if the are used, is the validation ok ? It should allow to use any parameter in the function (start_query_execution) and force required ones.
lambda_cron/template.cfn.yml
Outdated
Action: | ||
- athena:StartQueryExecution | ||
Resource: ['*'] | ||
- Effect: Allow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should replace
lambda-cron/lambda_cron/template.cfn.yml
Line 77 in 4369b40
- Effect: Allow |
It is redundant
Javier and I have discussed whether or not we should validate AWS API parameters (as the API may evolve over time) and have decided to table to the topic for now. |
* Updated template.cfn.yml to remove extraneous IAM policy statements
Tested in AWS, all ok. Feature ready to merge! @sean-garvey ,
|