How to view the region of an S3 bucket

Use the below command to identify the region of an S3 bucket where bucketname is the name of the bucket.

aws s3api get-bucket-location --bucket bucketname

See also  How to cancel a running query in Redshift