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 Risposta
0
Risposta accettata

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
ESPERTO
con risposta 4 anni fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande