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

asked a year ago352 views
1 Answer
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
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions