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_enabledoptional - bool -
alarm_actionsoptional - set of string -
alarm_descriptionoptional - string -
alarm_namerequired - string -
arnoptional computed - string -
comparison_operatorrequired - string -
datapoints_to_alarmoptional - number -
dimensionsoptional - map from string to string -
evaluate_low_sample_count_percentilesoptional computed - string -
evaluation_periodsrequired - number -
extended_statisticoptional - string -
idoptional computed - string -
insufficient_data_actionsoptional - set of string -
metric_nameoptional - string -
namespaceoptional - string -
ok_actionsoptional - set of string -
periodoptional - number -
statisticoptional - string -
tagsoptional - map from string to string -
thresholdoptional - number -
threshold_metric_idoptional - string -
treat_missing_dataoptional - string -
unitoptional - string -
metric_queryset block-
expressionoptional - string -
idrequired - string -
labeloptional - string -
return_dataoptional - bool -
metriclist block-
dimensionsoptional - map from string to string -
metric_namerequired - string -
namespaceoptional - string -
periodrequired - number -
statrequired - string -
unitoptional - 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
Metricproperty type represents a specific metric.Metricis a property of the MetricStat property type.