Skip to content

Commit

Permalink
Use S3 path addressing style
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhovinne committed Sep 18, 2021
1 parent 095d4e4 commit 299cb5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/722-ssm_connection-s3_path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- aws_ssm - use S3 ``path`` addressing style to avoid redirects (https://github.com/ansible-collections/community.aws/pull/722).
2 changes: 1 addition & 1 deletion plugins/connection/aws_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def _get_boto_client(self, service, region_name=None, profile_name=None):

client = session.client(
service,
config=Config(signature_version="s3v4")
config=Config(signature_version='s3v4', s3={'addressing_style': 'path'})
)
return client

Expand Down

0 comments on commit 299cb5f

Please sign in to comment.