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.
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 , or aws-cn depending on whether you're in general AWS, GovCloud, or China resepectively.
The ARN is a unique identifier that helps users identify specific resources present within AWS. Regarding the S3 ARN, if can be divided into 3 sections – the partition, the service name, and then the relative ID. In the context of Amazon S3, it would look something like this: arn:aws:s3:::bucket_name/key_name.
Open the Amazon Connect console at https://console.aws.amazon.com/connect/ . On the instances page, choose the instance alias. The instance alias is also your instance name, which appears in your Amazon Connect URL. On the Account overview page, in the Distribution settings section, you can see the full instance 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
, or aws-cn
depending on whether you're in general AWS, GovCloud, or China resepectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With