Skip to content

Commit

Permalink
Create encryption with SSE
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuniorlima committed Nov 10, 2021
1 parent 470ced7 commit cd17d15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions site-main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ resource "aws_s3_bucket" "website_bucket" {
}
}

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

tags = var.tags
}

Expand Down

0 comments on commit cd17d15

Please sign in to comment.