Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
Add bucket SSE capability
  • Loading branch information
pjuniorlima authored Nov 12, 2021
1 parent e2a3d1e commit 9abbd45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ resource "aws_s3_bucket" "s3_default" {
days = var.lifecycle_days_to_expiration
}
}

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 9abbd45

Please sign in to comment.