Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: CloudFormation Stacks Integration with SNS

Ensure CloudFormation stacks are integrated with Simple Notification Service (SNS) for enhanced security

RuleCloudFormation stacks should be integrated with Simple Notification Service (SNS)
FrameworkAWS Foundational Security Best Practices
Severity
Low

Rule Description:

CloudFormation stacks should be integrated with Simple Notification Service (SNS) for AWS Foundational Security Best Practices. Integration of SNS with CloudFormation stacks helps to enhance security, improve operational visibility, and enable automated notifications for stack events.

Troubleshooting Steps:

  1. 1.
    Verify IAM permissions: Ensure that the IAM role or user associated with the stack has the necessary permissions to access SNS. Check the IAM policy attached to the role or user and ensure it allows SNS operations.
  2. 2.
    Check SNS topic permissions: Ensure that the SNS topic used for integration with the CloudFormation stack has the appropriate permissions to send notifications. Verify the topic policy and make sure the necessary permissions are granted.
  3. 3.
    Confirm SNS topic subscription: Check if the CloudFormation stack has successfully subscribed to the SNS topic. If not, ensure that the subscription process is completed correctly.
  4. 4.
    Review event mappings: If specific events or resources are not triggering SNS notifications, review the CloudFormation template and verify the event mappings. Make sure the desired events and resources are correctly configured to trigger notifications.

Necessary Codes:

No specific codes are required for this integration. It is a configuration-based process, with no specific code implementation.

Step-by-Step Guide for Remediation:

Pre-requisites:

  • CloudFormation stack to be integrated with SNS
  • SNS topic created

Steps:

  1. 1.
    Open the AWS Management Console and navigate to the CloudFormation service.
  2. 2.
    Select the desired CloudFormation stack that you want to integrate with SNS.
  3. 3.
    In the stack details, click on the "Update" button to modify the stack properties.
  4. 4.
    In the CloudFormation template, locate the Resources section and add a new resource of type "AWS::SNS::TopicSubscription".
  5. 5.
    Configure the properties of the SNS topic subscription resource. Specify the SNS topic ARN and set the desired protocol for notification delivery, such as email, SMS, or AWS Lambda.
  6. 6.
    Save the changes to the CloudFormation template and proceed with updating the stack.
  7. 7.
    Once the stack update is completed, verify the SNS integration by navigating to the SNS service in the AWS Management Console.
  8. 8.
    Find the relevant SNS topic and check if the CloudFormation stack is successfully subscribed to it.
  9. 9.
    Test the integration by triggering events that should trigger SNS notifications, such as stack creation, update, or deletion.
  10. 10.
    Monitor the SNS notifications and ensure that the desired events are being properly sent to the configured recipients.

By following these steps, you can integrate CloudFormation stacks with SNS to enhance security and receive automated notifications for important stack events.

Is your System Free of Underlying Vulnerabilities?
Find Out Now