Skip to content

Commit 2c3c553

Browse files
committed
👷
1 parent 93e5413 commit 2c3c553

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
@@ -130,9 +130,8 @@ resource "aws_cloudwatch_metric_alarm" "lambda_alarm" {
130130
"${aws_sns_topic.alarms.arn}",
131131
]
132132

133-
dimensions {
133+
dimensions = {
134134
FunctionName = aws_lambda_function.lambda.function_name
135-
Resource = aws_lambda_function.lambda.function_name
136135
}
137136
}
138137

@@ -144,7 +143,7 @@ resource "aws_sns_topic" "alarms" {
144143
}
145144

146145
resource "aws_sns_topic_subscription" "subscription" {
147-
topic_arn = data.aws_sns_topic.alarms.arn
146+
topic_arn = aws_sns_topic.alarms.arn
148147
protocol = "email"
149148
endpoint = "[email protected]"
150149
}

0 commit comments

Comments
 (0)