Skip to content

Commit

Permalink
BBL-209 module tested - v0.0.2 ready
Browse files Browse the repository at this point in the history
  • Loading branch information
exequielrafaela committed Jul 24, 2020
1 parent daefaf3 commit fadf187
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_cw_natgw_active_cx" {
count = var.send_sns ? 1 : 0

alarm_name = var.alarm_suffix == "" ? "vpc-natgw-active-cx-count-alarm" : "vpc-natgw-active-cx-count-alarm-${var.alarm_suffix}"
comparison_operator = "EqualToThreshold"
comparison_operator = "LessThanOrEqualToThreshold"
evaluation_periods = "1"
datapoints_to_alarm = "1"
metric_name = "ActiveConnectionCount"
Expand All @@ -22,5 +22,4 @@ resource "aws_cloudwatch_metric_alarm" "alarm_cw_natgw_active_cx" {
threshold = "0"
alarm_description = "VPC Nat Gateway CW ActiveConnectionCount Rule has been triggered"
alarm_actions = [data.aws_sns_topic.main.arn]
ok_actions = [data.aws_sns_topic.main.arn]
}

0 comments on commit fadf187

Please sign in to comment.