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 Answer
0
Accepted Answer

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
EXPERT
answered 4 years ago
profile picture
EXPERT
reviewed 22 days 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