Skip to content

Commit 7cfcefc

Browse files
committed
Port ashok's changes
1 parent e3f0603 commit 7cfcefc

File tree

1 file changed

+5
-5
lines changed
  • modules/infra/submodules/cost-usage-report

1 file changed

+5
-5
lines changed

modules/infra/submodules/cost-usage-report/glue.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ resource "aws_glue_security_configuration" "lambda_config" {
1515

1616
encryption_configuration {
1717
cloudwatch_encryption {
18-
cloudwatch_encryption_mode = "SSE-KMS"
18+
cloudwatch_encryption_mode = var.kms_info.enabled ? "SSE-KMS" : "DISABLED"
1919
kms_key_arn = local.kms_key_arn
2020
}
2121

2222
job_bookmarks_encryption {
23-
job_bookmarks_encryption_mode = "CSE-KMS"
23+
job_bookmarks_encryption_mode = var.kms_info.enabled ? "CSE-KMS" : "DISABLED"
2424
kms_key_arn = local.kms_key_arn
2525
}
2626

2727
s3_encryption {
28-
s3_encryption_mode = "SSE-KMS"
28+
s3_encryption_mode = var.kms_info.enabled ? "SSE-KMS" : "SSE-S3"
2929
kms_key_arn = local.kms_key_arn
3030
}
3131
}
@@ -117,7 +117,7 @@ resource "aws_athena_workgroup" "athena_work_group" {
117117
output_location = "s3://${aws_s3_bucket.athena_result.bucket}/"
118118

119119
encryption_configuration {
120-
encryption_option = "SSE_KMS"
120+
encryption_option = var.kms_info.enabled ? "SSE_KMS" : "SSE_S3"
121121
kms_key_arn = local.kms_key_arn
122122
}
123123
}
@@ -137,4 +137,4 @@ resource "aws_vpc_endpoint" "aws_glue_vpc_endpoint" {
137137
tags = {
138138
"Name" = "${var.deploy_id}-glue"
139139
}
140-
}
140+
}

0 commit comments

Comments
 (0)