-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Comments
SomayaB
added
guidance
Question that needs advice or information.
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
labels
Jan 23, 2020
We're happy to help you out, but GitHub issues is not a support forum. There are Please ask that same question again on StackOverflow under the |
You can do something like this
A full example below
|
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: