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
A Technical I.T./DevOps Blog
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