Last active
April 3, 2021 10:45
-
-
Save kunduso/1681cf3c766afd5611da9d14cddce01f to your computer and use it in GitHub Desktop.
The aws cli to encrypt a s3 bucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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