AWS CloudWatch Metric Alarm

This page shows how to write Terraform and CloudFormation for CloudWatch Metric Alarm and write them securely.

aws_cloudwatch_metric_alarm (Terraform)

The Metric Alarm in CloudWatch can be configured in Terraform with the resource name aws_cloudwatch_metric_alarm. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a CloudWatch Metric Alarm resource.

AWS::CloudWatch::Alarm Metric (CloudFormation)

The Alarm Metric in CloudWatch can be configured in CloudFormation with the resource name AWS::CloudWatch::Alarm Metric. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Dimensions The metric dimensions that you want to be used for the metric that the alarm will watch..
Required: No
Type: List of Dimension
Maximum: 10
Update requires: No interruption

MetricName The name of the metric that you want the alarm to watch. This is a required field.
Required: No
Type: String
Minimum: 1
Maximum: 255
Update requires: No interruption

Namespace The namespace of the metric that the alarm will watch.
Required: No
Type: String
Minimum: 1
Maximum: 255
Pattern: [^:].*
Update requires: No interruption

Explanation in CloudFormation Registry

The Metric property type represents a specific metric. Metric is a property of the MetricStat property type.

Frequently asked questions

What is AWS CloudWatch Metric Alarm?

AWS CloudWatch Metric Alarm is a resource for CloudWatch of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.