documentation example for aws_cloudwatch_composite_alarm is incorrect #19575
Labels
bug
Addresses a defect in current functionality.
documentation
Introduces or discusses updates to documentation.
service/cloudwatch
Issues and PRs that pertain to the cloudwatch service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Composite Alarm is created as per documentation example https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_composite_alarm#example-usage
Actual Behavior
Error from AWS on apply, likely because of newlines in heredoc:
ValidationError: AlarmRule must not contain leading or trailing whitespace or be null
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: