turbot/steampipe-mod-aws-compliance

Control: CloudFormation stacks should have notifications enabled

Description

Ensure CloudFormation stacks are associated with an SNS topic to receive notifications when an event occurs.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.cloudformation_stack_notifications_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.cloudformation_stack_notifications_enabled --share

SQL

This control uses a named query:

select
id as resource,
case
when jsonb_array_length(notification_arns) > 0 then 'ok'
else 'alarm'
end as status,
case
when jsonb_array_length(notification_arns) > 0 then title || ' notifications enabled.'
else title || ' notifications disabled.'
end as reason
, region, account_id
from
aws_cloudformation_stack;

Tags