Skip to content

Commit

Permalink
feat: Add kms_encryption variable to cloudfront logs bucket (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
alldoami authored Mar 22, 2024
1 parent f4174df commit eea7209
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws-cloudfront-logs-bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module "aws-cloudfront-logs-bucket" {
abort_incomplete_multipart_upload_days = var.abort_incomplete_multipart_upload_days
public_access_block = var.public_access_block
lifecycle_rules = var.lifecycle_rules
kms_encryption = var.kms_encryption
}

resource "aws_s3_bucket_ownership_controls" "cloudfront-owner-preferred" {
Expand Down
5 changes: 5 additions & 0 deletions aws-cloudfront-logs-bucket/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ variable "public_access_block" {
type = bool
default = true
}

variable "kms_encryption" {
type = bool
default = false
}

0 comments on commit eea7209

Please sign in to comment.