How to get the ARN of an S3 Bucket

avatar

Borislav Hadzhiev

Last updated: Sep 21, 2021

banner

Photo from Unsplash

Get an S3 Bucket's ARN #

To get an S3 bucket's ARN:

  1. Navigate to the AWS S3 console
  2. Click on the radio button next to your bucket's name
  3. Click on the Copy ARN button

copy s3 bucket arn

Your bucket arn will look something like: arn:aws:s3:::my-bucket.

Alternatively if you know the name of your bucket, it's very easy to construct the ARN.

Replace the YOUR_BUCKET placeholder in the following string to construct the bucket's ARN: - arn:aws:s3:::YOUR_BUCKET.

This assumes that your partition (the aws) after the first colon is the default one. If you are in GovCloud or China, replace aws with aws-us-gov or aws-cn respectively.

Further Reading #

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.