Add default bucket level encryption

This commit is contained in:
Erik Stambaugh 2022-01-08 14:21:19 -08:00
parent bfa8242ba5
commit 2dbf15a844

View file

@ -16,6 +16,16 @@ module "s3_bucket" {
enabled = false enabled = false
} }
server_side_encryption_configuration = {
rule = {
apply_server_side_encryption_by_default = {
sse_algorithm = "AES256"
}
bucket_key_enabled = true
}
}
} }
# https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest # https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest