From 7ab6b6c9bbdf291461d1ceef76e3e729b7b607ab Mon Sep 17 00:00:00 2001 From: vinayakas Date: Mon, 27 Jun 2022 15:58:11 -0400 Subject: [PATCH 1/2] fix: added server_side_encryption key in resource aws_s3_object --- modules/runner-binaries-syncer/runner-binaries-syncer.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/runner-binaries-syncer/runner-binaries-syncer.tf b/modules/runner-binaries-syncer/runner-binaries-syncer.tf index b6d091de09..f5d5b81879 100644 --- a/modules/runner-binaries-syncer/runner-binaries-syncer.tf +++ b/modules/runner-binaries-syncer/runner-binaries-syncer.tf @@ -139,7 +139,7 @@ resource "aws_s3_object" "trigger" { source = "${path.module}/trigger.json" etag = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) == null ? filemd5("${path.module}/trigger.json") : null kms_key_id = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) - + server_side_encryption = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.sse_algorithm, null) depends_on = [aws_s3_bucket_notification.on_deploy] } From d0c296ceee38d44ec9b37606a784fed557245fb1 Mon Sep 17 00:00:00 2001 From: vinayakas Date: Mon, 27 Jun 2022 16:03:02 -0400 Subject: [PATCH 2/2] fix: added server_side_encryption key in resource aws_s3_object --- .../runner-binaries-syncer/runner-binaries-syncer.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/runner-binaries-syncer/runner-binaries-syncer.tf b/modules/runner-binaries-syncer/runner-binaries-syncer.tf index f5d5b81879..9289025043 100644 --- a/modules/runner-binaries-syncer/runner-binaries-syncer.tf +++ b/modules/runner-binaries-syncer/runner-binaries-syncer.tf @@ -134,13 +134,13 @@ resource "aws_lambda_permission" "syncer" { ################################################################################### resource "aws_s3_object" "trigger" { - bucket = aws_s3_bucket.action_dist.id - key = "triggers/${aws_lambda_function.syncer.id}-trigger.json" - source = "${path.module}/trigger.json" - etag = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) == null ? filemd5("${path.module}/trigger.json") : null - kms_key_id = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) + bucket = aws_s3_bucket.action_dist.id + key = "triggers/${aws_lambda_function.syncer.id}-trigger.json" + source = "${path.module}/trigger.json" + etag = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) == null ? filemd5("${path.module}/trigger.json") : null + kms_key_id = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) server_side_encryption = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.sse_algorithm, null) - depends_on = [aws_s3_bucket_notification.on_deploy] + depends_on = [aws_s3_bucket_notification.on_deploy] } resource "aws_s3_bucket_notification" "on_deploy" {