Skip to content

Commit 481bcf4

Browse files
authored
Merge pull request #14 from highwingio/ianbender/remove-default-alarms
Remove Cloudwatch alarms
2 parents 33be705 + abdd93e commit 481bcf4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ resource "aws_cloudwatch_metric_alarm" "lambda_errors" {
108108
alarm_name = "${var.name} - High Error Rate"
109109
comparison_operator = "GreaterThanOrEqualToThreshold"
110110
evaluation_periods = "2"
111-
ok_actions = [var.notifications_topic_arn]
112111
threshold = var.error_rate_alarm_threshold
113112
treat_missing_data = "notBreaching"
114113

@@ -125,7 +124,7 @@ resource "aws_cloudwatch_metric_alarm" "lambda_errors" {
125124
metric {
126125
metric_name = "Errors"
127126
namespace = "AWS/Lambda"
128-
period = "60"
127+
period = "600"
129128
stat = "Sum"
130129
unit = "Count"
131130

@@ -141,7 +140,7 @@ resource "aws_cloudwatch_metric_alarm" "lambda_errors" {
141140
metric {
142141
metric_name = "Invocations"
143142
namespace = "AWS/Lambda"
144-
period = "60"
143+
period = "600"
145144
stat = "Sum"
146145
unit = "Count"
147146

0 commit comments

Comments
 (0)