Skip to content

Commit b56d6d3

Browse files
committed
fix: Add tags to event rules
Not all event rules were tagged. Add the tags to missing ones. Did a global search for "aws_cloudwatch_event_rule", Added tags to untagged event rules
1 parent 9f17371 commit b56d6d3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

modules/termination-watcher/notification/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module "termination_warning_watcher" {
1919
resource "aws_cloudwatch_event_rule" "spot_instance_termination_warning" {
2020
name = "${var.config.prefix != null ? format("%s-", var.config.prefix) : ""}spot-notify"
2121
description = "Spot Instance Termination Warning"
22+
tags = local.config.tags
2223

2324
event_pattern = <<EOF
2425
{

modules/termination-watcher/termination/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module "termination_handler" {
1919
resource "aws_cloudwatch_event_rule" "spot_instance_termination" {
2020
name = "${var.config.prefix != null ? format("%s-", var.config.prefix) : ""}spot-termination"
2121
description = "Spot Instance Termination (BidEventicedEvent)"
22+
tags = local.config.tags
2223

2324
event_pattern = <<EOF
2425
{

modules/webhook/eventbridge/dispatcher.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
resource "aws_cloudwatch_event_rule" "workflow_job" {
22
name = "${var.config.prefix}-workflow_job"
3-
description = "Workflow job event ruule for job queued."
3+
description = "Workflow job event rule for job queued."
44
event_bus_name = aws_cloudwatch_event_bus.main.name
5+
tags = var.config.tags
56

67
event_pattern = <<EOF
78
{

0 commit comments

Comments
 (0)