Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave-malone/fc8c1e654a6b058393064de72677e187 to your computer and use it in GitHub Desktop.
Save dave-malone/fc8c1e654a6b058393064de72677e187 to your computer and use it in GitHub Desktop.
CloudFormation snippet to enable server side encryption by default on an s3 bucket
StaticAssetsS3Bucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-encrypted-bucket
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
VersioningConfiguration:
Status: Enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment