This should create a dashboard on billing and an alarm to detect anomaly on total cost
Actual behavior
A runtime error during a cdk deploy that leads to the error below:
8:54:06 PM | CREATE_FAILED | AWS::CloudWatch::Alarm | CdkMonitoringTestA...alyWarning970F670F
ComparisonOperators for ranges require ThresholdMetricId to be set (Service: AmazonCloudWatch; Status Code: 400; Error Code: ValidationError; Request ID: 678402c0-da06-4c56-a222-295dbe54bf74; Proxy: null)
Stack Deployments Failed: Error: The stack named CdkMonitoringTestApp-MonitoringStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: ComparisonOperators for ranges require ThresholdMetricId to be set (Service: AmazonCloudWatch; Status Code: 400; Error Code: ValidationError; Request ID: 678402c0-da06-4c56-a222-295dbe54bf74; Proxy: null)
Version
6.2.4
Steps and/or minimal code example to reproduce
Create a monitoring facade and then execute
monitorBilling()
withaddTotalCostAnomalyAlarm
Expected behavior
This should create a dashboard on billing and an alarm to detect anomaly on total cost
Actual behavior
A runtime error during a
cdk deploy
that leads to the error below:Other details
This may be related to this issue: https://github.com/aws/aws-cdk/issues/10540