CloudFormation stack notifications not configured

Configure an SNS topic for stack events.

Description

To send a nested CloudFormation stack’s creation, update and rollback events to SNS, list the topic in that stack’s NotificationARNs.

Potential impact

If no other path sends alerts, operators may miss a failed deployment or rollback.

Remediation

Check that CloudFormation can publish to the topic and the responsible operators are subscribed. Verify they receive an event from the nested stack.

Examples

The second template adds stack-alerts to myStackWithParams. Supply the actual nested template URL and its InstanceType and KeyName values.

Before

yaml
Resources:
  myStackWithParams:
    Type: AWS::CloudFormation::Stack
    Properties:
      TemplateURL: https://s3.amazonaws.com/cloudformation-templates-us-east-2/EC2ChooseAMI.template
      Parameters:
        InstanceType: t1.micro
        KeyName: mykey

After

yaml
Resources:
  myStackWithParams:
    Type: AWS::CloudFormation::Stack
    Properties:
      NotificationARNs:
        - "arn:aws:sns:ap-northeast-2:123456789012:stack-alerts"
      TemplateURL: https://s3.amazonaws.com/cloudformation-templates-us-east-2/EC2ChooseAMI.template
      Parameters:
        InstanceType: t1.micro
        KeyName: mykey

References