[Bug]: AWS CloudWatch alarm not associating with metric for S3 bucket policy changes #35361
Labels
bug
Addresses a defect in current functionality.
service/cloudwatch
Issues and PRs that pertain to the cloudwatch service.
service/logs
Issues and PRs that pertain to the logs service.
Terraform Core Version
1.6.6
AWS Provider Version
5.32.1, 4.67.0
Affected Resource(s)
aws_cloudwatch_metric_alarm
Expected Behavior
The metric alarm should be associated with the metric for CIS-S3BucketPolicyChanges.
Actual Behavior
The deployment was all successful. However the alarm was not associated with the metric. I have implemented same code for other resource action monitoring/alerting everything works except for this one and no errors too.
Attaching screenshot of non-association of alarm with metric:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Please provide the inputs for log_group_name (any existing log group name) and alarm_actions can be set to [].
terraform init
terraform plan
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: