How to set "ec2 auto recovery" action on EC2 instance? #5921
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
guidance
Question that needs advice or information.
needs-triage
This issue or PR still needs to be triaged.
❓ General Issue
The Question
How can I set "ec2 auto recovery" action on EC2 instance, using "Alarm" construct?
Environment
Other information
I can create an Alarm using code snippet below
I am not sure how to add ec2 auto recovery action on same alarm.
I tried something like this but didn't work.
I am trying to add following resource in my CF template
I can add all properties except "AlarmActions" as mentioned above using "Alarm" construct.
I can add all properties including "AlarmActions" with "CfnAlarm" construct. But I want to achieve same using "Alarm" construct.
"CfnAlarm" construct code snippet is as below.
Any help in this regards is much appreciated.
The text was updated successfully, but these errors were encountered: