Skip to content

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

Merged
merged 7 commits into from
Jul 26, 2017
Merged

Adding support for Athena #27

merged 7 commits into from
Jul 26, 2017

Conversation

sean-garvey
Copy link
Contributor

  • Added Athena Task and tests
  • Edited typos in README.md

* Edited typos in README.md
@sean-garvey sean-garvey requested a review from javibravo July 11, 2017 12:53
@javibravo
Copy link
Contributor

@sean-garvey,

Code looks good. Still missing something:

Sean Garvey added 3 commits July 11, 2017 15:42
@sean-garvey sean-garvey changed the title Added Athena Task and tests, Edited typos in README.md Adding support for Athena Jul 11, 2017
Copy link
Contributor

@javibravo javibravo left a 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
},
"required": ["EncryptionOption"]
}
"OutputLocation": { "type": "string" }
Copy link
Contributor

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.

Action:
- athena:StartQueryExecution
Resource: ['*']
- Effect: Allow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should replace

It is redundant

@sean-garvey
Copy link
Contributor Author

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
@javibravo
Copy link
Contributor

Tested in AWS, all ok. Feature ready to merge!

@sean-garvey ,
One more thing we forgot, we need to update the diagram in the README. To update it:

  1. Load lambda-cron-diagram.xml in https://www.draw.io/ (you don't need to sign up).
  2. Update diagram.
  3. Export diagram as PNG and save XML file.
  4. Add both of them to the repo.

@sean-garvey sean-garvey merged commit 7adb008 into master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants