Auto-generated
This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.
Monitoring — EC2 Instance¶
CloudWatch CPU alarms for individually-managed EC2 instances (i.e. not backed by an Auto Scaling Group). Creates one alarm per instance ID using the InstanceId dimension.
Requirements¶
No requirements.
Providers¶
| Name | Version |
|---|---|
| aws | n/a |
Modules¶
No modules.
Resources¶
| Name | Type |
|---|---|
| aws_cloudwatch_metric_alarm.cpu | resource |
Inputs¶
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| alarm_actions | List of ARNs to notify on alarm transitions. Typically the PagerDuty SNS topic ARN. | list(string) |
n/a | yes |
| base_tags | Base tags applied to all alarms. | map(string) |
{} |
no |
| cpu_threshold | Trigger when average CPUUtilization exceeds this percentage. | number |
80 |
no |
| evaluation_periods | Consecutive periods that must breach for the alarm to fire. | number |
3 |
no |
| instance_ids | Map of instance IDs to monitor, keyed by a short label (e.g. { a = "i-abc", b = "i-def" }). | map(string) |
n/a | yes |
| period | Period in seconds for each evaluation. | number |
300 |
no |
Outputs¶
No outputs.