0
Ich bin mit Terraforming bekommen einen AWS Alarm unten zu schaffen,Wie ARN Wert für AWS Alarm in Terraforming
resource "aws_cloudwatch_metric_alarm" "terraform-product-monitoring-dynamoDB-UserErrors" {
alarm_name = "terraform-product-monitoring-dynamoDB-UserErrors"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "2"
metric_name = "UserErrors"
namespace = "AWS/DynamoDB"
period = "120"
statistic = "Sum"
threshold = "1"
alarm_description = "This metric monitors the UserErrors for DynamoDB"
alarm_actions = ["${module.admin_sns_email_topic.arn}"]
insufficient_data_actions = []
}
ich die arn für den Alarm erhalten möchten, aber
"${aws_cloudwatch_metric_alarm.terraform-product-monitoring-dynamoDB-UserErrors.arn}"
gibt der Fehler
Resource 'aws_cloudwatch_metric_alarm.terraform-product-monitoring-dynamoDB-UserErrors' does not have attribute 'arn' for variable 'aws_cloudwatch_metric_alarm.terraform-product-monitoring-dynamoDB-UserErrors.arn'
Irgendeine Idee?
Prost
Hammer