Skip to content

Commit

Permalink
add missing sse
Browse files Browse the repository at this point in the history
  • Loading branch information
als753 committed Apr 10, 2023
1 parent ae85be0 commit 8150e03
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions aws/cloudtrail/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ resource "aws_s3_bucket" "logs" {

tags = var.tags

rule {
bucket_key_enabled = false
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
server_side_encryption_configuration {
rule {
bucket_key_enabled = false
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
}
}
}
Expand All @@ -37,10 +39,12 @@ resource "aws_s3_bucket" "mod" {
target_prefix = var.name
}

rule {
bucket_key_enabled = false
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
server_side_encryption_configuration {
rule {
bucket_key_enabled = false
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
}
}
}
Expand Down

0 comments on commit 8150e03

Please sign in to comment.