Lab 20:Simple Notification Service (SNS)
- Get link
- X
- Other Apps
What is SNS?
Amazon Simple Notification Service (SNS) is a highly
available, durable, secure, fully managed pub/sub messaging service that
enables you to decouple microservices, distributed systems, and serverless
applications.Additionally, SNS can be used to fan out
notifications to end users using mobile push, SMS, and email.
SNS Flow:
Steps:
·
To
create the SNS we need to create a topic
·
Create
a subscriber
·
Tag
SNS to Cloud watch
Lab: If your
bill exceed need to get a mail using sns:
Step 1:
Create a topic
Go to the
SNS dashboard
Create on
create a topic
Give a topic
name Eg:my estimation charges
In display
name give-Billing
Click on
create topic
Step 2:create a subscription
Select the protocols email
Give a subscriber mail id:eg:abc@gmil.com
Click on
create a subscription
You will get
a confirmation mail
Go to the
mail click on confirmation
Step:2
Go to the
billing dashboard
In the
navigation panel,choose preferences
Select
receive billing alerts
And save
your preference
Then go to
the cloud watch dashboard
In the
navigation panel choose alarms,billing,create alarm
Click on
create alarm
Go to the
bottom of the page click on show advanced
Under alarm
threshold ,replace the default name for the alarm(for example,my estimated
charges)and a description for the alarm (for ,example estimated monthly charges
alarm names must contain only ASCII characters .
Under
whenever charges for,for is, choose>= and then type the monetary amount (for
example ,200)
Under
additional settings,for treat missing data as choose ignore(maintain alarm
state)so that missing data points do not trigger alarm state changes
Under
actions ,for whenever this alarm,choose state is ALARM.for send notification to
choose an existing SNS topic or create a new one
To create an
SNS topic , choose new list.for send notification to ,type a name for SNS
topic,and for email list,type a comma separated list of email addresses where
email notifications should be sent each email is address sent a topic
subscription conformation email.you must conform the subscription before notifications can sent to an email address.
Click on
create alarm
After
successfully you will get Email
Exercise:1)if
your bill goes more than 10 dollars you should get an email
- Get link
- X
- Other Apps













Comments
Post a Comment