Skip to content

Commit

Permalink
fix: add missing prefix to ami cleanur for event rule (#4098)
Browse files Browse the repository at this point in the history
## Problem

Created even rule for ami is static, it missing a dynamic element
(prefix) to ensure unique resources.
  • Loading branch information
npalm authored Aug 27, 2024
1 parent 9b094a4 commit 1ad118b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ami-housekeeper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ad118b

Please sign in to comment.