List bucket properties

0

Hi, I am looking for an AWS CLI command to list all my S3 buckets and their properties, in particular the encryption type and if the BucketKey is enabled?

Thanks in advance. D

已提問 1 年前檢視次數 375 次
1 個回答
0

As far as this documentation is concerned, it is possible to get a list of buckets by using "list-buckets".
Information on bucket encryption can be checked with "get-bucket-encryption".
Since there does not appear to be a single command that simultaneously lists buckets and checks encryption settings, it is necessary to create a shell script using "list-buckets" and "get-bucket-encryption".
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/index.html

profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南