Skip to content

Commit 698cd72

Browse files
authored
fix: Fix example of alarm with anomaly detection (#77)
1 parent ec7e34a commit 698cd72

File tree

1 file changed

+1
-3
lines changed
  • examples/lambda-metric-alarm

1 file changed

+1
-3
lines changed

examples/lambda-metric-alarm/main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@ module "alarm_anomaly" {
119119
metric_query = [{
120120
id = "ad1"
121121

122-
return_data = true
123122
expression = "ANOMALY_DETECTION_BAND(m1, 2)"
124123
label = "Invocations (expected)"
125-
return_data = "true"
126124
},
127125
{
128126
id = "m1"
@@ -138,7 +136,7 @@ module "alarm_anomaly" {
138136
FunctionName = module.aws_lambda_function2.lambda_function_name
139137
}
140138
}]
141-
return_data = "true"
139+
return_data = true
142140
}]
143141

144142
alarm_actions = [module.aws_sns_topic.sns_topic_arn]

0 commit comments

Comments
 (0)