Demo: CloudWatch Alarm
Practice working with CloudWatch alarms.
We'll cover the following...
We'll cover the following...
Creating an Alarm using the AWS CLI
Let's create an alarm and witness CloudWatch in action. We'll start by creating an SNS topic using this command:
An SNS topic will be created. Copy and save the TopicArn returned as the output, as it will be used later.
Now we'll use this command to subscribe to this topic and create the alarm. Before running this command, replace <TopicArn> in lines 1 and 11 with the ARN of the topic saved earlier and <EmailAddress> in line 2 with an email address.
The subscribe command in line 1 will create a subscription. We will get an email to confirm our SNS subscription. We will click “Confirm ...