diff --git a/modules/runner-binaries-syncer/runner-binaries-syncer.tf b/modules/runner-binaries-syncer/runner-binaries-syncer.tf index af82c29e2f..956d5add73 100644 --- a/modules/runner-binaries-syncer/runner-binaries-syncer.tf +++ b/modules/runner-binaries-syncer/runner-binaries-syncer.tf @@ -48,7 +48,7 @@ resource "aws_lambda_function" "syncer" { resource "aws_iam_role_policy" "lambda_kms" { count = try(var.server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id, null) != null ? 1 : 0 - name = "${var.environment}-lambda-kms-policy-syncer" + name = "${var.prefix}-lambda-kms-policy-syncer" role = aws_iam_role.syncer_lambda.id policy = templatefile("${path.module}/policies/lambda-kms.json", {