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

Commit 4286ee0

Browse files
author
Luke Addison
committed
Change threshold to greater than or equal to
Signed-off-by: Luke Addison <[email protected]>
1 parent 3d32f45 commit 4286ee0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

terraform/amazon/templates/instance_pools/instance_pool_instance.tf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ resource "aws_cloudwatch_metric_alarm" "autorecover_{{.TFName}}" {
206206
alarm_description = "This metric auto recovers EC2 instances"
207207
alarm_actions = ["arn:aws:automate:${var.region}:ec2:recover"]
208208
statistic = "Minimum"
209-
comparison_operator = "GreaterThanThreshold"
209+
comparison_operator = "GreaterThanOrEqualToThreshold"
210210
threshold = "1"
211211
metric_name = "StatusCheckFailed_System"
212212

terraform/amazon/templates/vault_instances.tf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "aws_cloudwatch_metric_alarm" "vault-autorecover" {
4040
alarm_description = "This metric auto recovers Vault instances for the ${var.environment} cluster"
4141
alarm_actions = ["arn:aws:automate:${var.region}:ec2:recover"]
4242
statistic = "Minimum"
43-
comparison_operator = "GreaterThanThreshold"
43+
comparison_operator = "GreaterThanOrEqualToThreshold"
4444
threshold = "1"
4545
metric_name = "StatusCheckFailed_System"
4646

0 commit comments

Comments
 (0)