How to get ARN for s3 Bucket using aws cli

+1 vote
Jun 7, 2018 in AWS by graci
• 240 points
5,560 views

3 answers to this question.

+1 vote
The syntax is : arn:aws:s3:::NAME-OF-YOU-BUCKET.

If the ARN  and the  name of the bucket  is known ,then there is no need to 'get' it from anywhere.
answered Jun 7, 2018 by MISHA
• 520 points
+1 vote

An ARN is a non-opaque, constructible identifier, apparently by design. They aren't at all likely to change the documented rules for the S3 ARN format. The cn-north-1 region is special case, as is GovCloud, because those are completely cordoned off from the global aws partition, not accessible with the same sets of keys. If you're working in multiple partitions, you have to know which partition you're dealing with.

answered Aug 16, 2018 by Priyaj
• 58,100 points
@Priyaj can you elaborate the process??
0 votes

Was hoping for a way to do this without making any assumptions about the ARN format. Buckets in cn-north-1 region are arn:aws-cn:s3:::BUCKET_NAME and I was hoping to avoid having to "know" how Amazon assigned ARNs in case Amazon were to change the rules

answered Sep 7, 2018 by eatcodesleeprepeat
• 4,710 points

Related Questions In AWS

0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,170 points
19,750 views
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15, 2019 in AWS by Priyaj
• 58,100 points
6,088 views
0 votes
1 answer
0 votes
1 answer
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,100 points
5,153 views
+6 votes
3 answers
0 votes
2 answers

How many instances can be created under AWS free tier account

Ans 1. Amazon charges based on usage per ...READ MORE

answered Jun 7, 2018 in AWS by MISHA
• 520 points
1,886 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP