AWS Classroom Series – 17/Dec/2021

Amazon Simple Notification Service (SNS)

  • SNS is a managed service that provides message delivery to subscribers.
  • Publisher communicate asynchronously with subscribers by sending messages to a topic, which is a logical access point and Communication Channel Preview
  • Lets create an SNS Topic Preview Preview
  • Now lets add some email subcriptions. Note: you need to confirm email subscriptions
  • Use the topic admin alerts when your cpu is underused Preview Preview Preview

Activity 2: Create an alert in AWS when your ec2 is overused

  • Lets understand overusage
    • When CPU utilization > 85% for the last 10 minutes
  • Actions -> Reboot the System
  • Notification -> Send the notification to your admin team.
  • After creating the alarm, we can create artificial stress
    • Install a tool called as ‘stress’
    sudo apt install stress
    
    # amazon linux
    sudo amazon-linux-extras install epel -y
    sudo yum install stress -y
    
    • Now run the command stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 100m -v Preview
  • You will recieve email alert as well.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube