Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The aws cli to encrypt a s3 bucket
# bucket name: skundu-terraform-remote-state-two
aws s3api put-bucket-encryption --bucket skundu-terraform-remote-state-two --server-side-encryption-configuration "{\"Rules\": [{\"ApplyServerSideEncryptionByDefault\":{\"SSEAlgorithm\": \"AES256\"}}]}"
# no output if bucket encryption is successfully applied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment