Skip to content

Commit

Permalink
Update s3.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kariemoorman authored Apr 26, 2024
1 parent ec2752e commit 96d3aa6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tf/step1/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,13 @@ resource "aws_s3_bucket_logging" "s3log" {
target_bucket = aws_s3_bucket.log_bucket.id
target_prefix = "log/"
}

# Encrypt S3 bucket using SSE-S3
resource "aws_s3_bucket_server_side_encryption_configuration" "encrypt" {
bucket = aws_s3_bucket.log_bucket.id
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
}
}

0 comments on commit 96d3aa6

Please sign in to comment.