Skip to content

Commit

Permalink
support enabling bucket key encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Posse committed Jul 3, 2024
1 parent 469f313 commit f80ef6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "default" {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}

bucket_key_enabled = var.bucket_key_enabled
}
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,9 @@ variable "source_policy_documents" {
Statement having SIDs that match policy SIDs generated by this module will override them.
EOT
}

variable "bucket_key_enabled" {
type = boolean
default = false
description = "Eanble bucket key encryption, to reduce usage costs"
}

0 comments on commit f80ef6e

Please sign in to comment.