CloudFormation stacks should have notifications enabled¶
Ensure CloudFormation stacks are associated with an SNS topic to receive notifications when an event occurs.
How to fix¶
Attribute notification_arns of aws_cloudformation_stack must be non-empty.
Implementation options¶
Choose the option that matches how you manage Terraform. All options satisfy this control.
Option 1: Terraform AWS provider resources¶
If you manage resources directly, configure the relevant Terraform AWS provider resources to meet this control. See docs for the resources involved: aws_cloudformation_stack.
resource "aws_cloudformation_stack" "this" {
disable_rollback = false
name = "pofix-example-stack"
notification_arns = ["arn:aws:sns:us-east-1:123456789012:cloudformation-notifications"]
template_body = jsonencode({ AWSTemplateFormatVersion = "2010-09-09", Description = "Empty stack", Resources = { NullResource = { Type = "AWS::CloudFormation::WaitConditionHandle" } } })
}
Which option should I choose?
- Compliance.tf module (recommended): controls enforced by default and mapped to frameworks.
- Open source module (
terraform-aws-modules): compatible by design with compliance.tf. Same variable names for an easy, low-change migration path when you are ready. - Terraform AWS provider resources: manage Terraform resources directly.
Tool mappings¶
Use these identifiers to cross-reference this control across tools, reports, and evidence.
Compliance.tf (CTF) Control:
cloudformation_stack_notifications_enabledAWS Config Managed Rule:
CLOUDFORMATION_STACK_NOTIFICATION_CHECKCheckov Check:
CKV_AWS_124Powerpipe Control:
aws_compliance.control.cloudformation_stack_notifications_enabled