Watch your EC2 instances with Lambda.
When EC2 state changes, send notification to BearyChat channel of your choice.
Attach AmazonEC2ReadOnlyAccess policy to the IAM role under which the lambda function runs.
- EC2 (cn-north-1) running: i-08cfa289619d660eb (prometheus-trial)
- EC2 (cn-north-1) stopped: i-08cfa289619d660eb (prometheus-trial)
- EC2 (cn-north-1) terminated: i-08cfa289619d660eb (prometheus-trial)