Get ARN of S3 Bucket with aws cli

余生颓废 提交于 2019-12-20 08:31:23

问题


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.


回答1:


It's always arn:aws:s3:::NAME-OF-YOUR-BUCKET. If you know the name of the bucket, you know the ARN. No need to 'get' it from anywhere.




回答2:


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



来源:https://stackoverflow.com/questions/41253054/get-arn-of-s3-bucket-with-aws-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!