fixedbox-health-alarms
Fixed-box EC2 status-check alarms that tell someone (agent manager 8a3d302; Paul approved 2026-11-09).
Why: dev dennis-stenciling was impaired (EC2 system status) 03:58-12:4xZ on 11-09. Its only health alarm, <name>-auto-recover, had ec2:recover and no SNS action; the recover fired 04:00:55Z, failed, and nobody heard.
Change (infra/modules/region-host, fixed mode only):
- auto-recover: alerts topic added to alarmactions and okactions; ec2:recover kept.
- new
<name>-instance-check: StatusCheckFailedInstance, Maximum, 3 of 3 x 60 s (recover stays 2 x 60 s, so recover acts first), treatmissingdata = missing; alarm -> ec2:reboot + topic; ok -> topic. Same gate as auto-recover (mode fixed && enableauto_recovery). - new input
health_alerts_topic_arn(same-region, validated like alertstopicarn): a topic for the two status alarms only, arming no memory alarm and no publish grant. Empty falls back to the alertstopicarn / alertsemail topic, so the flagship (alertsemail set) needs no input change; dev sets it to carlos-dev-ie-group-alerts / carlos-dev-uk-ha-alerts.
Inert until a deployment root bumps its module pin. Tests: tests/healthalarms.tftest.hcl, 10 runs, plus fixedstate_unchanged etc. (20/20 locally); two mutations caught. CI does not run tofu tests.
Commits
3
Discussions
0
0 open
Tasks
0/0
done
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed 0065c957f census: proposal for fixedbox-health-alarms (region-host alarms)
- paul@keymail.dev pushed 563d401ec region-host: reboot alarm waits 3 min so recover goes first
- paul@keymail.dev pushed 846784f0e region-host: status-check alarms notify; reboot on instance check