Add support for STS AssumeRole regional endpoints
See original GitHub issueI don’t think I’m missing it, but I don’t see a way to configure boto3/botocore with a regional endpoint for use with sts.assume_role()
. I would like to investigate reducing STS latency as described in Activating and Deactivating AWS STS in an AWS Region. It appears the Java SDK provides support, and it seems Python should as well.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Managing AWS STS in an AWS Region - AWS Documentation
In the Security Token Service (STS) section Endpoints, find the Region that you want to configure, and then choose Active or Inactive in...
Read more >regional sts support for AWS credentials with role-assumption
In our use case we have isolated team-city set up in a private subnet, we provided vpc endpoint for s3 bucket which works...
Read more >How to enable regional AWS Security Token Service (STS ...
If you intend to enable a new Region for your account, you can use session tokens from Regional STS endpoints.
Read more >STS — Boto3 Docs 1.26.33 documentation - AWS
Attach a policy to the user that allows the user to call AssumeRole (as long as the role's trust policy trusts the account)....
Read more >AWS STS (Security Token Service) - Scaler Topics
In fact, AWS recommends using Regional AWS STS endpoints over the global ... 1, AssumeRole, Allow us to access the AWS service that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed that using
endpoint_url
works as expected for accessing regionalized STS endpoints. We aren’t able to change the defaults due to backwards compatibility, but you can use regionalized STS via this:I get the expected output (in my case I have us-west-2 disabled so I get an error as I expect):
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don’t have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.