Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CLI : Could not connect to the endpoint URL : "https://sts.amazonaws.com/"

We have trouble to execute any command on Windows AWS CLI. After AWS Configure as follows, almost every command returns the sts access error.

-- AWS Configure
aws_access_key_id=XXXXXXXX
anw_secreat_key_id=XXXXXXX
region=ap-northeast-1
output = json

-- command & error message
aws s3 ls
Could not connect to the endpoint URL : "https://sts.amazonaws.com/"

If you went trought the same kind of issue, could you kindly tell me what should be re-configured or added, like any special security group etc. ?

Any advice would be appreciated again.

like image 791
Sachiko Avatar asked Sep 10 '18 07:09

Sachiko


2 Answers

I was having this issue as well. The problem was with my machine. Running ipconfig /renew on my Windows 10 machine solved the problem.

Hopefully this helps someone else some day.

like image 171
kendaop Avatar answered Oct 17 '22 09:10

kendaop


To access S3 of another account using VPC endpoint in a closed area, the following addition may be required depending on the version of AWS CLI.

.aws/config

sts_regional_endpoints=regional

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-config-sts_regional_endpoints

like image 27
susaki Avatar answered Oct 17 '22 08:10

susaki