Terraform fails to create aws_cloudwatch_metric_alarm #10987
Labels
service/cloudwatch
Issues and PRs that pertain to the cloudwatch service.
waiting-response
Maintainers are waiting on response from community or contributor.
Community Note
Terraform Version
Terraform v0.11.14
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/dcgomesbr/5a47c13c8986bcd712a68ad87daae2d1
Panic Output
None
Expected Behavior
Create the Anomaly Band alarm.
Actual Behavior
aws_cloudwatch_metric_alarm.errors_alert: Creating metric alarm failed: ValidationError: ComparisonOperators for ranges require ThresholdMetricId to be set
status code: 400, request id: 01862480-0be5-4132-a5a3-63ee2e0eb4d1
Steps to Reproduce
Plan and apply the resource above.
Important Factoids
I could create the resource manually and import the state in some cases. In other cases, it insists in re-create the metric.query because of return_data != false and fails the same way.
References
None
The text was updated successfully, but these errors were encountered: