aws-samples / amazon-cloudwatch-auto-alarms

Automatically create and configure Amazon CloudWatch alarms for EC2 instances, RDS, and AWS Lambda using tags for standard and custom CloudWatch Metrics.
MIT No Attribution
90 stars 84 forks source link

Add scan for all running ec2 instance with tags #14

Closed GnatorX closed 2 years ago

GnatorX commented 3 years ago

Issue #, if available: https://github.com/aws-samples/amazon-cloudwatch-auto-alarms/issues/11

Description of changes: Add ability to scan for all running ec2 with tags so you don't need to reboot boxes for lambda to trigger. The lambda can be triggered with a payload of {'action': 'scan'}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

maxwell-ops-code commented 2 years ago

@GnatorX is there a way to activate this payload trough GUI or as some sort of a handler on AWS?

GnatorX commented 2 years ago

If you send an event via the lambda gui with a event payload {'action': 'scan'} it should trigger it