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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With