Skip to content

Conversation

@adev-code
Copy link

@adev-code adev-code commented Nov 17, 2025

Summary

Adds documentation improvements to S3 configuration documentation (in the AWS CLI) for the --endpoint-url parameter:

  1. Warning against S3 Global endpoint: Advises users to avoid using https://s3.amazonaws.com or http://s3.amazonaws.com as the --endpoint-url parameter value, as it can cause PermanentRedirect errors and configuration confusion.

  2. General endpoint_url guidance: Adds a note explaining the --endpoint-url parameter usage, including caution about S3 unintended behavior such as S3 redirect issues. References the AWS SDK reference guide for additional endpoint configuration information.

Testing

• [x] Documentation builds successfully with make html
• [x] Warning and note display correctly in generated docs

Screenshot 2025-11-28 at 9 40 03 AM

Addresses #9479

Add warning to S3 configuration documentation advising users to avoid
using s3.amazonaws.com as the --endpoint-url parameter value to prevent
PermanentRedirect errors and configuration confusion.

This addresses user issues where setting the global S3 endpoint as a
custom endpoint URL causes redirect loops and unexpected behavior.

Addresses aws#9479
Add warning to S3 configuration docs advising against using the global
S3 endpoint (s3.amazonaws.com) as --endpoint-url parameter value to
prevent PermanentRedirect errors and other unwanted behaviors/errors from S3

Addresses aws#9479
@adev-code adev-code changed the title [Documentation] Warning against the use of s3.amazonaws.com as endpoint-url [Documentation] Warning against the use of S3 Global Endpoint (s3.amazonaws.com) as endpoint-url Nov 17, 2025
@kdaily
Copy link
Member

kdaily commented Nov 18, 2025

This might be a good place to point customers to:

https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html

Move endpoint-url warning from warning block to note format and
relocate to appropriate section based on code review feedback.
Add reference to AWS service-specific endpoints documentation.

Addresses aws#9479

Refactor the S3 endpoint-url guidance based on review feedback:

- Change from warning block to note format
- Add reference to official AWS service-specific endpoints guide
- Improve clarity of when to use endpoint-url with appropriate actions
- Maintain focus on preventing redirect issues and unintended behavior

This addresses the original issue while incorporating reviewer suggestions
for better placement and formatting of the guidance.
@adev-code adev-code requested a review from kdaily November 21, 2025 17:22
Improved clarity and readability of the endpoint_url parameter
documentation for S3 commands.
@ashovlin ashovlin added the documentation This is a problem with documentation. label Dec 1, 2025
@adev-code adev-code linked an issue Dec 4, 2025 that may be closed by this pull request
1 task
@adev-code adev-code requested a review from kdaily December 10, 2025 21:46
Copy link
Member

@kdaily kdaily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, once CI tests pass. Please squash commits before merging, thanks!

@adev-code adev-code merged commit 1f517fa into aws:v2 Dec 12, 2025
58 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This is a problem with documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message for aws s3 ls refers to wrong endpoint.

3 participants