Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 3.46 KB

File metadata and controls

39 lines (35 loc) · 3.46 KB

Inputs

Name Description Type Default Required
actions_enabled Indicates whether or not actions should be executed during any changes to the alarm's state. bool true no
alarm_actions The list of actions to execute when this alarm transitions into an ALARM state from any other state. list(any) [] no
alarm_description The description for the alarm. string "" no
alarm_name The descriptive name for the alarm. string n/a yes
comparison_operator The arithmetic operation to use when comparing the specified Statistic and Threshold. string n/a yes
datapoints_to_alarm Sets the number of datapoints that must be breaching to trigger the alarm. number 1 no
dimensions Dimensions for metrics. map(any) {} no
enabled Enable alarm. bool true no
environment Environment (e.g. prod, dev, staging). string "" no
evaluation_periods The number of periods over which data is compared to the specified threshold. number n/a yes
expression_enabled Enable alarm with expression. bool false no
insufficient_data_actions The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. list(any) [] no
label_order Label order, e.g. name,application. list(any) [] no
managedby ManagedBy, eg 'CloudDrove'. string "[email protected]" no
metric_name The name for the alarm's associated metric. string "CPUUtilization" no
name Name (e.g. app or cluster). string "" no
namespace The namespace for the alarm's associated metric. string "AWS/EC2" no
ok_actions The list of actions to execute when this alarm transitions into an OK state from any other state. list(any) [] no
period The period in seconds over which the specified statistic is applied. number 120 no
query_expressions values for metric query expression. list(any)
[
{
"expression": "ANOMALY_DETECTION_BAND(m1)",
"id": "e1",
"label": "CPUUtilization (Expected)",
"return_data": "true"
}
]
no
query_metrics values for metric query metrics. list(any)
[
{
"dimensions": {
"InstanceId": "i-abc123"
},
"id": "m1",
"metric_name": "CPUUtilization",
"namespace": "AWS/EC2",
"period": "120",
"return_data": "true",
"stat": "Average",
"unit": "Count"
}
]
no
repository Terraform current module repo string "https://github.com/clouddrove/terraform-aws-cloudwatch-alarms" no
statistic The statistic to apply to the alarm's associated metric. string "Average" no
threshold The value against which the specified statistic is compared. number 40 no
threshold_metric_id If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function. string "" no
treat_missing_data Sets how an alarm is going to handle missing data points. string "missing" no

Outputs

Name Description
arn The ARN of the cloudwatch metric alarm.
id The ID of the health check.
tags A mapping of tags to assign to the resource.