I wanted to add Cloudwatch Status Check alarms to my ec2 instances and used terraform to do this. Here’s how. Basically, the .tf example below looks for any running ec2 instances in the VPC(s) associated with my terraform workspace.

Related Articles