Get Instant Solutions for Kubernetes, Databases, Docker and more
Amazon Simple Notification Service (SNS) is a fully managed messaging service provided by AWS. It is designed to facilitate the sending of notifications from the cloud to various endpoints, including mobile devices, email, and HTTP endpoints. SNS is commonly used for sending alerts, notifications, and updates to users or systems in real-time.
When using AWS SNS, you might encounter the 'KMSDisabled' error. This error typically occurs when you attempt to publish a message to an SNS topic that is configured to use a customer-managed AWS Key Management Service (KMS) key, but the key is currently disabled.
The 'KMSDisabled' error indicates that the KMS key specified for encrypting messages in transit is not active. AWS KMS keys can be disabled for various reasons, such as security policies or administrative actions. When a key is disabled, any operation that requires the key will fail, resulting in errors like 'KMSDisabled'.
AWS KMS keys are crucial for ensuring the security of your data. They encrypt messages to protect sensitive information during transmission. For more information on AWS KMS, visit the AWS KMS Documentation.
First, check the status of the KMS key associated with your SNS topic. You can do this through the AWS Management Console or AWS CLI. To check via CLI, use the following command:
aws kms describe-key --key-id
Ensure that the key status is 'Enabled'.
If the key is disabled, you need to enable it. In the AWS Management Console, navigate to the KMS section, select the key, and click 'Enable'. Alternatively, use the AWS CLI:
aws kms enable-key --key-id
After enabling the key, ensure that your SNS topic is correctly configured to use the active KMS key. You can update the topic settings via the AWS Management Console or AWS CLI.
For further assistance, refer to the AWS SNS Key Management Guide and the AWS KMS Overview.
(Perfect for DevOps & SREs)
Try Doctor Droid — your AI SRE that auto-triages alerts, debugs issues, and finds the root cause for you.