resource "aws_cloudwatch_event_rule" "instance_state" { name = "instance-state-events" event_pattern = <