Book Image

Amazon Web Services Bootcamp

Book Image

Amazon Web Services Bootcamp

Overview of this book

AWS is at the forefront of Cloud Computing today. Businesses are adopting AWS Cloud because of its reliability, versatility, and flexible design. The main focus of this book is teaching you how to build and manage highly reliable and scalable applications and services on AWS. It will provide you with all the necessary skills to design, deploy, and manage your applications and services on the AWS cloud platform. We’ll start by exploring Amazon S3, EC2, and so on to get you well-versed with core Amazon services. Moving on, we’ll teach you how to design and deploy highly scalable and optimized workloads. You’ll also discover easy-to-follow, hands-on steps, tips, and recommendations throughout the book and get to know essential security and troubleshooting concepts. By the end of the book, you’ll be able to create a highly secure, fault tolerant, and scalable environment for your applications to run on.
Table of Contents (16 chapters)

Alarms


CloudWatch alarms provide monitoring for our AWS resources and applications. An alarm uses a metric to monitor; if the metric's value crosses the threshold value defined for a certain period of time, an alarm action is triggered, which can be either an EC2 action, an auto scaling action, or a SNS event. CloudWatch maintains the state of change for a certain period of time. For every state of change, an alarm action can be triggered, so that we can take action properly. The following are the alarm states:

  • OK: Metric value is within the limits of the threshold value
  • ALARM: Metric value crosses the threshold value
  • INSUFFICIENT_DATA: Metric value is not available or there is not enough data to identify the alarm state

Note

IMPORTANT: We can create up to 5,000 alarms per region per AWS account.

Let's see how to create alarms using the AWS Management Console, AWS CLI, AWS SDK – Java, and CloudFormation. For our example, we will create an alarm for the RDS instance's CPU utilization. If the RDS...