Which is the default region "aws s3" connects by default from EC2?

0

We were trying to setup an GatewayEndpoint for S3 in eu-central-1.

After setting up the endpoint, route and security groups, the command "aws s3 ls" failed, but "aws s3 ls --region eu-central-1" was successful.

Why is that? To which region is the request sent by default if not specifying the region explicitly?

已提问 4 年前537 查看次数
1 回答
0
已接受的回答

The default region depends on the value set for the environment variable AWS_DEFAULT_REGION or the value set at the time when aws configure was used to add the access key and the secret key.

AWS
专家
已回答 4 年前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则