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

feita há um ano373 visualizações
1 Resposta
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas