Skip to content

Commit

Permalink
Add tags to metric alarms
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleung-appzen committed Jun 30, 2021
1 parent 15b4a3b commit 014ceca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ resource "aws_cloudwatch_metric_alarm" "service_max_stuck" {
ClusterName = "${var.cluster_name}"
ServiceName = "${var.service_name}"
}
tags = "${module.label.tags}"
}

resource "aws_cloudwatch_metric_alarm" "service_queue_high" {
Expand Down Expand Up @@ -292,6 +293,7 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_high" {
}
}
}
tags = "${module.label.tags}"
}

resource "aws_cloudwatch_metric_alarm" "service_queue_big_high" {
Expand Down Expand Up @@ -349,6 +351,7 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_big_high" {
}
}
}
tags = "${module.label.tags}"
}

# A CloudWatch alarm that monitors CPU utilization of containers for scaling down
Expand Down Expand Up @@ -404,6 +407,7 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_low" {
}
}
}
tags = "${module.label.tags}"
}

resource "aws_cloudwatch_metric_alarm" "queue_up" {
Expand Down Expand Up @@ -471,6 +475,7 @@ resource "aws_cloudwatch_metric_alarm" "queue_up" {
}
}
}
tags = "${module.label.tags}"
}

resource "aws_cloudwatch_metric_alarm" "queue_down" {
Expand Down Expand Up @@ -538,4 +543,5 @@ resource "aws_cloudwatch_metric_alarm" "queue_down" {
}
}
}
tags = "${module.label.tags}"
}

0 comments on commit 014ceca

Please sign in to comment.