Create a CloudWatch alert with Terraform (AWS)

In this story, we will create a CloudWatch alert to trigger an alarm if the CPU usage percentage of 80% is exceeded for 120 seconds.

Defining specifications

The alert will have the following features :

  • Name: aws_cloudwatch_metric_alarm,
  • Condition: CPUUtilization ≥,
  • Statistic function: Average,
  • Threshold (used by the condition): 80%,
  • Metrics namespace: AWS/EC2,

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

392 Followers

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.