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.
Parameters
-
actions_enabled
optional - bool -
alarm_actions
optional - set of string -
alarm_description
optional - string -
alarm_name
required - string -
arn
optional computed - string -
comparison_operator
required - string -
datapoints_to_alarm
optional - number -
dimensions
optional - map from string to string -
evaluate_low_sample_count_percentiles
optional computed - string -
evaluation_periods
required - number -
extended_statistic
optional - string -
id
optional computed - string -
insufficient_data_actions
optional - set of string -
metric_name
optional - string -
namespace
optional - string -
ok_actions
optional - set of string -
period
optional - number -
statistic
optional - string -
tags
optional - map from string to string -
threshold
optional - number -
threshold_metric_id
optional - string -
treat_missing_data
optional - string -
unit
optional - string -
metric_query
set block-
expression
optional - string -
id
required - string -
label
optional - string -
return_data
optional - bool -
metric
list block-
dimensions
optional - map from string to string -
metric_name
required - string -
namespace
optional - string -
period
required - number -
stat
required - string -
unit
optional - string
-
-
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.