-
Notifications
You must be signed in to change notification settings - Fork 397
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
aws_ssm signed url using v2 and thus aws_ssm generates incompatible curl request to download s3 object for ansible python #352
Conversation
plugins/connection/aws_ssm.py
Outdated
if self.get_option('region') is None: | ||
region_name = 'us-east-1' | ||
else: | ||
region_name = self.get_option('region') |
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.
You can actually just do, and this will also cover the case where the region
is an empty string:
region_name = self.get_option('region') or 'us-east-1'
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 has been addressed with the new commits.
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 Pull Request. We need a changelog fragment before we can merge it. Can you please add one? https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs
…ansible playbook usingh aws_ssm
Change log set has been updated and pushed. |
Thank you @ramvalleru for your contribution :-). |
…url request to download s3 object for ansible python (ansible-collections#352) - AWS SDKs that were released before May 2016, request Signature Version 4 - fix generated url for aws s3 object for ansible python that executes ansible playbook usingh aws_ssm
…url request to download s3 object for ansible python (ansible-collections#352) - AWS SDKs that were released before May 2016, request Signature Version 4 - fix generated url for aws s3 object for ansible python that executes ansible playbook usingh aws_ssm
…url request to download s3 object for ansible python (ansible-collections#352) - AWS SDKs that were released before May 2016, request Signature Version 4 - fix generated url for aws s3 object for ansible python that executes ansible playbook usingh aws_ssm
Correct changelog data from 1.4.1 Reviewed-by: https://github.com/apps/ansible-zuul
SUMMARY
Issue is with botocore which still uses V2 signature by default instead of V4 signature. This result in malformed CURL http url to download Ansible python script from S3. Issue is documented in botocore boto/botocore#2109.
Include fix to #351
ISSUE TYPE
COMPONENT NAME
aws_ssm connection
ADDITIONAL INFORMATION