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?

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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠