Content

                                                  Content How to create an AWS free Account? Lab 1: To launch amazon Linux EC2 instance Lab 2: To Connect to the instance from Linux client Operating System Lab 3:To Launch amazon windows instance Lab 4: Installing apache in EC2 instance Lab 5: Installing Nginx in EC2 instance Lab 6: Changing Host Name Lab 7: Creating a user and making as a sudoer Lab 8:Assigning an Elastic ip Lab 9:Creating ebs,attach and detach the volumn to the instance Lab 10:Creating an S3 Bucket and creating cross replication in another region Lab 11:Load Balancer Lab 12:Two instances with Application Load Balancer Lab 13:Launching two instances with load Balancer Lab:14 Creating Own VPC  Lab 15: Two instances which classic load Balance with own VPC Lab 16:Two instances with Application load Balancer with own VPC Lab 17: Relational Data B...

Lab 20:Simple Notification Service (SNS)

                                         Lab 19:Simple Notification Service (SNS)

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

3)if your ec2 machine goes down you get an mail
4)if some one adds 0.0.0.0 allows in a security group you should gets an email 

Comments

Popular posts from this blog

Lab 21:Installing docker in instance and build an image

Lab 22:Pushing a docker image to docker hub

Lab 5: Installing Nginx in EC2 instance