From 1ad118bd516cc29919a2ec9deb9c9362f635f953 Mon Sep 17 00:00:00 2001 From: Niek Palm Date: Tue, 27 Aug 2024 18:10:43 +0200 Subject: [PATCH] fix: add missing prefix to ami cleanur for event rule (#4098) ## Problem Created even rule for ami is static, it missing a dynamic element (prefix) to ensure unique resources. --- modules/ami-housekeeper/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ami-housekeeper/main.tf b/modules/ami-housekeeper/main.tf index 9de45f592f..f462c240fc 100644 --- a/modules/ami-housekeeper/main.tf +++ b/modules/ami-housekeeper/main.tf @@ -100,7 +100,7 @@ resource "aws_iam_role_policy" "ami_housekeeper" { } resource "aws_cloudwatch_event_rule" "ami_housekeeper" { - name = "ami-housekeeper-rule" + name = "${var.prefix}-ami-housekeeper" schedule_expression = var.lambda_schedule_expression tags = var.tags state = var.state_event_rule_ami_housekeeper