Is it possible to get the ARN of an S3 bucket via the AWS command line?
I have looked through the documentation for aws s3api ...
and aws s3 ...
and have not found a way to do this.
Is it possible to get the ARN of an S3 bucket via the AWS command line?
I have looked through the documentation for aws s3api ...
and aws s3 ...
and have not found a way to do this.
You can also select your S3 bucket ARN by selecting it using the tick mark at the s3 management console, which will pop up a Side bar. where there is a provision to copy your S3 bucket ARN.S3 management console with bucket ARN
It's always
arn:PARTITION:s3:::NAME-OF-YOUR-BUCKET
. If you know the name of the bucket and in which partition it's located, you know the ARN. No need to 'get' it from anywhere.The PARTITION will be
aws
,aws-us-gov
, oraws-cn
depending on whether you're in general AWS, GovCloud, or China resepectively.