-
Notifications
You must be signed in to change notification settings - Fork 399
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
add metadata options to ec2 template #322
Conversation
Hi @danquack The main thing that needs updating is the integration tests. That they're not failing is a good start and implies you've not broken existing behaviour, however the new behaviour should be tested: tests/integration/targets/ec2_launch_template/playbooks/roles/ec2_launch_template/tasks/main.yml The integration tests are just Ansible playbooks. After that we also need
Unfortunately it looks like our CI environment currently doesn't have the policies in place to allow the tests to run. I'll try to look into getting that added, in the mean time @jillr put together a blog post which should help with getting the tests running under your own AWS Account: https://www.ansible.com/blog/getting-started-with-aws-ansible-module-development |
Thank you for the feedback. I'll go ahead and work toward this. It wasn't inherently clear to me, but with your feedback, I can most certainly work toward meeting all the specifications! |
@tremble or @jillr so i was trying to test this locally via the instructions, but I am struggling to get the local environment up and running. I cloned the repo into
|
The clue is here:
See the "Testing Locally" section of @jillr's blog post https://www.ansible.com/blog/getting-started-with-aws-ansible-module-development |
@tremble Ive been trying to follow that blog post for setting up, and i've got past the creds issue now that ive moved it to the right directory, but am now seeing an issue where inside docker it cant find the collection. Any insights into this error?
|
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.
In general we only run tests with ignore_errors where we explicitly expect a failure (we're testing that it rejects behaviour, possibly with a nice error). If we can get these tests passing, then I think this change if good to merge.
.../targets/ec2_launch_template/playbooks/roles/ec2_launch_template/tasks/instance-metadata.yml
Outdated
Show resolved
Hide resolved
.../targets/ec2_launch_template/playbooks/roles/ec2_launch_template/tasks/instance-metadata.yml
Outdated
Show resolved
Hide resolved
.../targets/ec2_launch_template/playbooks/roles/ec2_launch_template/tasks/instance-metadata.yml
Outdated
Show resolved
Hide resolved
.../targets/ec2_launch_template/playbooks/roles/ec2_launch_template/tasks/instance-metadata.yml
Outdated
Show resolved
Hide resolved
@tremble fixed the build so i think were good to go on this |
@danquack this PR contains the following merge commits: Please rebase your branch to remove these commits. |
@ansibullbot ready_for_review |
@danquack This PR contains |
@ansibullbot ready_for_review fixed the commit message |
@tremble is there anything mre this needs to get community review? Ive never commited to this repo so i dont know what the path is for getting community approval |
@tremble bump |
@tremble is this something you can approve now? It’s not clear what this PR is waiting on for merge |
Apologies for the delay getting back to you. Two things missing: changelog and version_added. Since you've been waiting so long on me I'll get those added and we can get this merged. |
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.
Assuming the tests pass we should be good to merge this.
Thank you! |
* add metadata options to ec2 template
* add metadata options to ec2 template
* add metadata options to ec2 template
* add metadata options to ec2 template
* add metadata options to ec2 template
SUMMARY
Looking to add the ability to manage launch templates metadata options
ISSUE TYPE
COMPONENT NAME
ec2_launch_template
ADDITIONAL INFORMATION
https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/