Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 1ad118b

Browse files
authored
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.
1 parent 9b094a4 commit 1ad118b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: modules/ami-housekeeper/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ resource "aws_iam_role_policy" "ami_housekeeper" {
100100
}
101101

102102
resource "aws_cloudwatch_event_rule" "ami_housekeeper" {
103-
name = "ami-housekeeper-rule"
103+
name = "${var.prefix}-ami-housekeeper"
104104
schedule_expression = var.lambda_schedule_expression
105105
tags = var.tags
106106
state = var.state_event_rule_ami_housekeeper

0 commit comments

Comments
 (0)