Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-mfa hitting to "https://sts.amazonaws.com/" instead of "https://sts.<region>.amazonaws.com/" #80

Open
Ankits19 opened this issue Sep 7, 2022 · 3 comments

Comments

@Ankits19
Copy link

Ankits19 commented Sep 7, 2022

I am using aws-mfa.

When i run aws-mfa with profile name with long-term credentials in my ~/.aws/credentials, it is always reaching to
https://sts.amazonaws.com as my machine is in private network so not able to resolve it and failing to have temporary creds in my file.

image

@Ankits19 Ankits19 changed the title aws-mfa hitting to "https://sts.amazonaws.com/" instead of ""https://sts.<region>.amazonaws.com/" aws-mfa hitting to "https://sts.amazonaws.com/" instead of "https://sts.<region>.amazonaws.com/" Sep 7, 2022
@DanielMcAssey
Copy link

You have to create an environment variable with the following: AWS_STS_REGIONAL_ENDPOINTS='regional'

@Ankits19
Copy link
Author

Ankits19 commented Nov 22, 2022

Hi, even after adding this it is still going to the global endpoint instead of REGIONAL. If i remember correctly I tried this earlier as well.

image

@Ankits19
Copy link
Author

Adding "sts_regional_endpoints = regional" in ~/.aws/config file, worked but will it should not be created by aws-mfa?
because what we create profile is default-long-term.

image

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

No branches or pull requests

2 participants