0% found this document useful (0 votes)
34 views4 pages

Module 9 Lab

This document provides instructions for a lab to create a CloudWatch alarm that will send an SNS notification if account spending exceeds $100. The lab has the student: 1. Create an SNS topic called "MoneyAlert" to receive notifications. 2. Subscribe their email or phone to the SNS topic. 3. Create a CloudWatch alarm to monitor the "EstimatedCharges" metric and trigger the SNS notification if charges exceed $100. The alarm is configured to use the existing SNS topic to send alerts when costs reach the threshold.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views4 pages

Module 9 Lab

This document provides instructions for a lab to create a CloudWatch alarm that will send an SNS notification if account spending exceeds $100. The lab has the student: 1. Create an SNS topic called "MoneyAlert" to receive notifications. 2. Subscribe their email or phone to the SNS topic. 3. Create a CloudWatch alarm to monitor the "EstimatedCharges" metric and trigger the SNS notification if charges exceed $100. The alarm is configured to use the existing SNS topic to send alerts when costs reach the threshold.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Module 9 Lab: Creating a

CloudWatch Alarm That Initiates


an Amazon SNS Message
Lab overview
In this lab, you create an Amazon CloudWatch alarm to notify you when the
account has spent over a certain amount of money. The alarm sends a
message to Amazon Simple Notification Service (Amazon SNS) to send an email
or text notification.

Duration
This lab requires approximately 40 minutes to complete.

Access the AWS Management Console


1. To start the lab session, choose Start Lab in the upper-right corner of
the page.
o The lab session starts.
o A timer displays in the upper-right corner of the page and shows
the time remaining in the session.

Tip: To refresh the session length at any time, choose Start


Lab again before the timer reaches 0:00.

2. Before continuing, wait until the lab environment is ready. The


environment is ready when the lab details appear on the right side of
the page and the circle icon next to the AWS link in the upper-left corner
turns green.
3. To return to these instructions, choose the Readme link in the upper-
right corner.
4. To connect to the AWS Management Console, choose the AWS link in
the upper-left corner, above the terminal window.
A new browser tab opens and connects you to the AWS Management
Console.

Tip: If a new browser tab does not open, a banner or icon is usually at
the top of your browser with the message that your browser is
preventing the site from opening pop-up windows. Choose the banner
or icon, and then choose Allow pop-ups.

Note: You are using the console through the lab environment, so you
are not incurring any actual costs. However, in the real world, when
using a personal or business account to access the console, users incur
charges for use of specific AWS services.

Task 1. Create and subscribe to an SNS


topic
4. Choose the Services menu, locate the Application Integration section,
and choose Simple Notification Service.
5. In the left navigation pane, select Topics.

Note: If you don't see the left navigation pane, choose the hamburger
menu icon.

6. Select Create topic.

A Topic acts as a communication channel where messages from alerts


and events can be posted.

7. For Type, select Standard.


8. For Name, enter MoneyAlert
9. Choose Create topic.

Now, you will subscribe to that topic so when a message is posted to the topic,
it will be pushed to your phone or email.

10.In the Subscriptions section, choose Create subscription.


11.For Topic ARN, select the MoneyAlert topic you created.
12.For Protocol, select Email to get an email alert.
13.For Endpoint, enter your email address or phone number, depending
on what you selected for Protocol.
14.Select Create subscription.

Note: A confirmation message displays at the top of the page. Make


sure to Confirm subscription once the email is received.

Task 2. Create a CloudWatch alarm


Now you will create the billing alert.

15.Choose the Services menu, locate the Management &


Governance section, and choose CloudWatch.
16.In the left navigation pane, select Alarms.
17.Choose Create alarm.
18.Choose Select metric.
19.Select Billing.
20.Select Total Estimated Charge.
21.Check the box for EstimatedCharges.
22.Choose Select metric.
23.In the Conditions section, configure the following:
o For Threshold type, select Static.
o For Whenever EstimatedCharges is…, select Greater.
o For than..., enter 100 into the textbox.
24.Choose Next.
25.In the Notification section, configure the following:
o For Alarm state trigger, choose In alarm.
o For Send a notification to the following SNS topic,
choose Select an existing SNS topic.
o For Send a notification to..., choose the MoneyAlert topic.
26.Choose Next.
27.For Alarm name, enter MoneyAlertAlarm
28.Choose Next.
29.Review the settings. Scroll down and choose Create alarm.

Congratulations! You have set up a CloudWatch alarm that uses Amazon SNS
to send an alert when the cost of services reaches $100.

Lab complete
Congratulations! You have completed the lab.

30.Log out of the AWS Management Console.


o In the upper-right corner of the page, choose your user name.
Your user name begins with voclabs/user.
o Choose Sign Out.
31.Choose End Lab at the top of this page, and then select Yes to confirm
that you want to end the lab.

You might also like