"aws s3 ls"在EC2上默认使用的是哪个区域?

0

【以下的问题经过翻译处理】 我们正在尝试在eu-central-1为S3设置网关终端节点。

在设置完毕终端节点、路由和安全组之后,命令“aws s3 ls”运行失败,但“aws s3 ls --region eu-central-1”成功了。

为什么会这样?在没有明确指定区域下请求会默认发送到哪个区域?

profile picture
EXPERT
asked 5 months ago39 views
1 Answer
0

【以下的回答经过翻译处理】 默认区域取决于环境变量AWS_DEFAULT_REGION的设置值,或者是在使用aws configure添加访问密钥和秘密密钥时设置的值。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions