Tuesday, August 10, 2021

How to recover Instance Status Check Failed in EC2 ?

How to recover Instance Status Check Failed in EC2 ?

Introduction -

In this tutorial we are going to configure recover Instance while EC2 status Check Failed whenever your EC2 Instance goes to status Check Failed then Instance will be rebooted automatically and than will work as before

CloudWatch is a monitoring and management service that provides Metric data and actionable insights for AWS.  you can access all your
performance and operational data in form of logs and metrics from a single platform.

You can create a CloudWatch alarm that monitors CloudWatch metrics for one of your instances. CloudWatch will automatically send you a
notification when the metric reaches a threshold that you specify.

For each alarm, you must specify the thresholds to monitor and the actions to take when the alarm is triggered. You can also configure the alarm to send an email notification through SNS (Simple Notification Service).

Example Error Image : 1


Example Error Image :2

Step 1) Login Into AWS Console

Step 2) Switch to EC2 Section

Step 3) Select the Instance and go to the "Status Check"


 

Step 4) Expend the Action than click on "Create Status Check Alarm"


 

Step 5) To the Alarm notification Section (Write the New Alarm Name)

Configure the alarm to send notifications to an Amazon SNS topic when it is triggered.


 

Step 6) To the Alarm action Section (Select Reboot)

When the alarm is triggered, than your Action will be perform.


 

Step 7) Go to Alarm thresholds Section.

  • Specify the metric thresholds for the alarm.

To the "Type of data to sample" Choose "status check failed : instance"


 

here are some of the "data sample" you can be use according as per your requirement.

  •  Select period 1 minute

Alarm when Failing Consecutive period 1 =  period 1 minute than Action will perform


 

Step 8) Finally Click on create




No comments:

Post a Comment

testing