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?

preguntada hace 4 años536 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
EXPERTO
respondido hace 4 años
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas