Skip to content
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

SSM connection - set S3 addressing style #722

Closed

Conversation

jfhovinne
Copy link

SUMMARY

Fixes #705

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

aws_ssm

ADDITIONAL INFORMATION

I confirm the connection issue described in #705 (I got the redirect error multiple times with different accounts + new buckets), which is fixed by applying the proposed patch, i.e. using the 'path' addressing style.

@ansibullbot ansibullbot added bug This issue/PR relates to a bug community_review connection connection plugin needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) small_patch Hopefully easy to review labels Sep 17, 2021
@116davinder
Copy link
Contributor

@jfhovinne, you would need to write doc fragment + test case if possible.
example: https://github.com/ansible-collections/community.aws/blob/main/changelogs/fragments/499-elb-module-add-ip_address_type_option.yml

The integration test case will be great.

@jfhovinne
Copy link
Author

After investigation, I see that simply setting the addressing style fixes the issue, so we can use virtual instead.

@jfhovinne jfhovinne changed the title Use path addressing style SSM connection - set S3 addressing style Sep 19, 2021
@116davinder
Copy link
Contributor

After investigation, I see that simply setting the addressing style fixes the issue, so we can use virtual instead.

Can you try with auto option instead of virtual?

addressing_style: The S3 addressing style. When necessary, Boto automatically switches the addressing style to an appropriate value. The following values are supported.

auto
(Default) Attempts to use virtual, but falls back to path if necessary.

path
Bucket name is included in the URI path.

virtual
Bucket name is included in the hostname.

ref: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html#using-a-configuration-file

I believe, the best option is to take an extra parameter for it and auto as the default option.

@tremble / @markuman / @jillr , any suggestions for this issue?

@jfhovinne
Copy link
Author

@116davinder The connection issue still occurs when setting the addressing style to auto.
Also I was suggesting virtual instead of path because path may be deprecated by AWS in the future.

@jfhovinne
Copy link
Author

@116davinder Anything else blocking that PR?

@gillg
Copy link

gillg commented Jan 9, 2022

duplicate of #786 and definitely not generic. #786 is preferable.
Could be closed

@jfhovinne
Copy link
Author

The problem is that the issue is not fixed with #786 and default settings.

@tremble
Copy link
Contributor

tremble commented Jan 20, 2023

Thanks for taking the time to open this PR.

#1633 has now been merged which should add this functionality to release 5.2.0 of this collection

@tremble tremble closed this Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug community_review connection connection plugin needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) small_patch Hopefully easy to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection Issues with "aws_ssm.py" when S3 bucket is newly created
5 participants