Skip to content

Commit

Permalink
feat: Define the default server-side bucket encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
terranisu committed Nov 14, 2023
1 parent 4a4fb99 commit 4d1c8c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions s3_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ resource "aws_s3_bucket" "s3_buckets" {
max_age_seconds = cors_rule.value.max_age_seconds
}
}

server_side_encryption_configuration {
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
}
}
}

# Make sure no object could ever be public
Expand Down

0 comments on commit 4d1c8c3

Please sign in to comment.