boto3 icon indicating copy to clipboard operation
boto3 copied to clipboard

Announcement: Changes to default STS endpoint resolution

Open RyanFitzSimmonsAK opened this issue 5 months ago • 0 comments

In Boto3 v1.40.0, we updated the default AWS STS endpoints resolution from legacy (global endpoint) to regional. This aligns with AWS best practices and brings boto3 in line with other AWS SDKs that already default to regional endpoints.

Regional endpoints eliminate cross-regional calls and reduce inter-region dependencies, improving both performance and reliability for your applications. This change may affect your application's behavior after updating, particularly if your code relies on the previous global endpoint behavior.

If you encounter problems, you can revert to the legacy behavior using either:

  • Set sts_regional_endpoints = legacy in your shared AWS config file
  • Set the AWS_STS_REGIONAL_ENDPOINTS=legacy environment variable

For more information about transitioning to regional service endpoints, please refer to the AWS STS announcement and the blog post.

RyanFitzSimmonsAK avatar Jul 31 '25 19:07 RyanFitzSimmonsAK