Skip to content

Commit

Permalink
add ok_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
max-rocket-internet committed Aug 8, 2023
1 parent 3af9e5f commit 1bcf5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/trusted_advisor_alarms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ resource "aws_cloudwatch_metric_alarm" "main" {
evaluation_periods = 1
metric_name = "ServiceLimitUsage"
namespace = "AWS/TrustedAdvisor"
ok_actions = var.cloudwatch_alarm_actions
period = 3600
statistic = "Average"
tags = var.tags
Expand Down
1 change: 1 addition & 0 deletions modules/usage_alarms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ resource "aws_cloudwatch_metric_alarm" "main" {
comparison_operator = "GreaterThanThreshold"
datapoints_to_alarm = 1
evaluation_periods = 1
ok_actions = var.cloudwatch_alarm_actions
tags = var.tags
threshold = var.cloudwatch_alarm_threshold

Expand Down

0 comments on commit 1bcf5e7

Please sign in to comment.