0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【メモ】バケットが暗号化されているか確認する方法

Posted at

aws s3バケットの一覧取得後、
バケットが暗号化されているか確認する方法

cloudshellなどで下記コマンドを入力したら取得可能

AWS CLIで利用可能なS3バケットの一覧を取得

bucket_list=$(aws s3api list-buckets --query 'Buckets[].Name' --output text)

各バケットに対してコマンドを実行し、バケット名と暗号化情報を表示

for bucket in $bucket_list; do
echo "Bucket: $bucket"
aws s3api get-bucket-encryption --bucket "$bucket" --output yaml
echo "--------------------------"
done

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?