ec2 module alarm creation

Hi guys,

I’ve been spending some days tweaking some ansible playbooks to create ec2 instances using the ec2 module. I was wondering if the current module allows creation of alarms and if not if it’s on the development plan for the future? I see there are other ec2 modules (quite useful) for things like cloudformation, elastic ips, etc, but nothing specific for creating alarms.

Before ansible we used the fog gem which allows creation of alarms. The ec2 module uses the python boto library which is ready for that as well, so it may be a nice addition (even considering developing the feature myself).

Cheers

There’s no specific plan for adding this, but we’re always open to pull requests for upgrades.

Not sure if this is best left to the cloudformation module or whether another module is warranted, but open to thoughts here for sure.

Doesn’t the ec2_metric_alarm module do this already? Or was this post from a time before that module was added…

ec2_metric_alarm was added more recently, yes.