Description
The incident in #1107 — 19 armed CloudWatch alarms publishing to a topic whose only subscriber had never confirmed, so nothing was delivered for over a week — was not caught by anything. This is the detector for it.
The declaration was correct the whole time, which is why no existing gate saw it: aws_sns_topic_subscription is present in envs/core/alerts.tf and terraform apply creates it happily, but SNS requires the address to confirm and Terraform cannot. An unconfirmed subscription is also indistinguishable from a working one in the console.
drift does eventually notice, and that is the problem: it notices three days late and for the wrong reason. AWS deletes a subscription that stays pending, the refresh-only plan reports the resource gone, and the classifier calls it real drift — days after delivery stopped. Then the next apply re-creates it, pending again, so it cycles forever while the alarms never deliver.
Wanted: a check asserting the topic has at least one subscription whose SubscriptionArn is not the literal PendingConfirmation, run on the daily schedule with a read-only role, with its own self-test and an endpoint-redacting output (this runs in a public repository's logs).
Separate from #1107, which is the incident itself and needs one click from the owner of the subscribed address. A detector does not deliver an alarm.
Activity