How Do You Determine the AWS Region for an S3 Bucket?

Problem scenario
Using the AWS CLI how do you determine the AWS region for an S3 bucket?

Solution
Run this command (but replace "foobar" with the name of your bucket):

aws s3api get-bucket-location --bucket foobar

Leave a comment

Your email address will not be published. Required fields are marked *