Ensure logging is enabled for notification messages sent to a topic
Rule | Logging of delivery status should be enabled for notification messages sent to a topic |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description:
Notification messages sent to a topic in AWS should have delivery status logging enabled. This helps to maintain visibility into the status of message deliveries and ensures that notifications are successfully reaching the intended recipients.
Troubleshooting Steps:
If there are issues with message delivery or if delivery status logging is not enabled, the following steps can be taken for troubleshooting:
Verify Topic Configuration:
Check Permissions:
Confirm Subscriptions:
Verify Email Notifications:
Review SNS Delivery Policies:
Test with Sample Message:
publish
command from AWS CLI to send a test message to the topic.Check CloudWatch Logs:
Necessary Codes:
No specific codes are required for this rule.
Step-by-Step Guide for Remediation:
To enable delivery status logging for notification messages sent to a topic in AWS, follow these steps:
Open the Amazon SNS console.
Navigate to the topic for which you want to enable delivery status logging.
Click on the topic's ARN (Amazon Resource Name) to access the topic details.
Click on the "Edit" button in the "Delivery status logging" section.
Enable the checkbox next to "Enable delivery status logging".
Optionally, you can provide an Amazon S3 bucket to store the delivery logs by entering the bucket name in the "S3 bucket name" field.
Click on the "Save changes" button to save the configuration.
Once enabled, AWS will start logging the delivery status of notification messages sent to the topic. These logs can be accessed in the configured Amazon S3 bucket or viewed in the CloudWatch Logs for the topic.
Note: Enabling delivery status logging may incur additional charges for storing the logs in Amazon S3. Confirm the associated costs before enabling this feature.
By following the above steps, you can ensure that delivery status logging is enabled for notification messages sent to a topic in AWS, enhancing visibility and troubleshooting capabilities for message deliveries.