-
Notifications
You must be signed in to change notification settings - Fork 341
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
remove instance-state-name inverse filters in favor of standard value… #237
remove instance-state-name inverse filters in favor of standard value… #237
Conversation
… filters on other 4 accepted options to fix bad aws return
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.
Thank you for the PR, @IamNobleSix. This change looks good. We need a changelog fragment before we can merge: https://docs.ansible.com/ansible/latest/community/development_process.html#creating-a-changelog-fragment.
It would also be a good idea to add a test for this, which would have caught this regression before it went out. In this case, I think just adding a task to stop the second instance here: https://github.com/ansible-collections/amazon.aws/blob/main/tests/integration/targets/ec2/tasks/main.yml#L138 and then assert that it is in fact stopped should be sufficient.
Hi @gravesm that sounds good to me. I will get working on that today. Thanks. |
Stop test created using similar logic to already established terminate test on line 103. |
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.
Thanks for your work on this, @IamNobleSix!
Thank you @IamNobleSix for your contribution. |
…ollections#237) Files transferred to instances via the SSM connection plugin should use folders within the bucket that are namespaced per-host, to prevent collisions. Files should also be deleted from buckets when they are no longer required. Fixes: ansible-collections#221 Fixes: ansible-collections#222 Based on work by abeluck changelog
remove instance-state-name inverse filters in favor of standard value filters on other 4 accepted options to fix bad aws return
SUMMARY
This fixes: #235
ISSUE TYPE
COMPONENT NAME
amazon aws ec2.py
ADDITIONAL INFORMATION
Instead of using inverse filters (which to my knowledge are not allowed by any or all version of aws cli and can cause issues as noted in #235) use the other 4 allowed values as normal outlined in https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html for instance-state-name