[Documentation] Add virtual-hosted-style addressing to presigned URL documentation examples#4768
Open
adev-code wants to merge 1 commit intoboto:developfrom
Open
[Documentation] Add virtual-hosted-style addressing to presigned URL documentation examples#4768adev-code wants to merge 1 commit intoboto:developfrom
adev-code wants to merge 1 commit intoboto:developfrom
Conversation
legacy global endpoint (bucket.s3.amazonaws.com), which returns errors
for S3 buckets in Regions launched after March 20, 2019.
Updated all three code examples (create_presigned_url,
create_presigned_url_expanded, create_presigned_post) to include
s3={'addressing_style': 'virtual'} in the Config, and updated the
recommendation text to mention virtual-hosted-style addressing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Presigned URLs generated without
addressing_style='virtual'use the legacyglobal endpoint (
bucket.s3.amazonaws.com), which returnsSignatureDoesNotMatchorIllegalLocationConstraintExceptionerrors for S3buckets in newer Regions (e.g.,
eu-north-1,il-central-1).Changes
s3={'addressing_style': 'virtual'}to theConfigin all threecode examples:
create_presigned_url,create_presigned_url_expanded,and
create_presigned_postTesting