S3 endpoint for unspecified region

0

When I don't specify a region, the command "aws s3 ls" goes to s3-1.amazonaws.com.

I cannot find a prefix list which contains this URL, so I cannot easily create an allow list or route traffic to this endpoint.

1 Answer
0
Accepted Answer

s3-1.amazonaws.com is an alias for s3.us-east-1.amazonaws.com. You can do an nslookup for it and see:

bash$ nslookup s3.amazonaws.com
Server:		10.106.65.245
Address:	10.106.65.245#53

Non-authoritative answer:
s3.amazonaws.com	canonical name = s3-1.amazonaws.com.
s3-1.amazonaws.com	canonical name = s3.us-east-1.amazonaws.com.
Name:	s3.us-east-1.amazonaws.com
Address: 52.216.8.101

The default is us-east-1 if you dont export AWS_DEFAULT_REGION

AWS
EXPERT
answered 4 years 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