Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from TechNative-B-V/feature/updated-instance-t…
Browse files Browse the repository at this point in the history
…ermination-eventbridge-rule

Updated cloudwatch instance termination rule to use state instead of …
  • Loading branch information
AndrNgg authored Jan 8, 2024
2 parents a9b6e69 + 8aca34b commit c41658a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda_cw_alarm_creator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ resource "aws_cloudwatch_event_rule" "cloudwatch_instance_termininate_rule" {

name = "terminate-cw-alarms-on-instance-termination-rule"
description = "Monitor state changes of EC2 instances and if true run cw_alarm creator lambda to remove stale alarms."
is_enabled = true
state = "ENABLED"

event_bus_name = "default"
event_pattern = jsonencode({
Expand Down

0 comments on commit c41658a

Please sign in to comment.