From 05055c0f09fd846a9ba43126fad71b5d01495d39 Mon Sep 17 00:00:00 2001 From: Julian Calaby <52724016+JulianCBC@users.noreply.github.com> Date: Thu, 21 Jul 2022 06:36:05 +1000 Subject: [PATCH] fix: Make statement IDs unique (#503) --- modules/terminate-instances/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/terminate-instances/main.tf b/modules/terminate-instances/main.tf index c8b14aa74..e7f154b83 100644 --- a/modules/terminate-instances/main.tf +++ b/modules/terminate-instances/main.tf @@ -43,7 +43,7 @@ resource "aws_lambda_permission" "current_version_triggers" { resource "aws_lambda_permission" "unqualified_alias_triggers" { function_name = aws_lambda_function.terminate_runner_instances.function_name - statement_id = "TerminateInstanceEvent" + statement_id = "TerminateInstanceEventUnqualified" action = "lambda:InvokeFunction" principal = "events.amazonaws.com" source_arn = aws_cloudwatch_event_rule.terminate_instances.arn