Skip to content

Conversation

@adev-code
Copy link

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

Summary

Adds a warning to S3 configuration documentation (in the AWS CLI) advising users to avoid using the S3 Global endpoint: s3.amazonaws.com as the --endpoint-url parameter value.

Setting --endpoint-url=https://s3.amazonaws.com causes PermanentRedirect errors and configuration confusion. This may also cause other unwanted behaviors and errors from S3, introducing confusion for users and impacting their configuration.

This PR adds a warning to the S3 configuration documentation that explicitly recommends against using the global S3 endpoint to prevent redirect error loops and other unwanted behaviors and errors from S3.

Testing

  • Documentation builds successfully with make html
  • Warning displays correctly in generated docs
Screenshot 2025-11-19 at 7 33 02 PM

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
for performance reasons or to account for the specific environment where these
``aws s3`` commands are being run.

.. warning::
Copy link
Member

Choose a reason for hiding this comment

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

I would move this into the "Configuration Values" section as a general comment, not a warning.


.. warning::
S3 commands have a parameter ``--endpoint-url`` that overrides the command's
default URL with the given URL. Avoid using the S3 Global Endpoint
Copy link
Member

Choose a reason for hiding this comment

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

I think we could be a bit more general here and just say you should avoid configuring the endpoint URL at all when using the AWS S3 service? Generally endpoint URL is only going to be needed for 3P endpoints when using S3.

@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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants