-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[cloudwatch] Alarms don't execute on KMS encrypted SNS #11121
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatchbugThis issue is a bug.This issue is a bug.closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp1
Description
Alarms do not seem to execute properly when configured to a Topic with master_key.
Reproduction Steps
topic = aws_sns.Topic(self.stack, 'alarm-topic',
display_name='Topic for alarms',
master_key=key,
topic_name=self.alarms_topic_name)
alarm.add_alarm_action(aws_cloudwatch_actions.SnsAction(alarms_topic))then trigger the alarm via boto3 set_alarm_state
What did you expect to happen?
Triggering the alarm would send notification to the topic.
What actually happened?
The following error on aws cloudwatch alarm page:
Failed to execute action arn:aws:sns:eu-west-1:461491260158:rivendell-eu-west-1-log-test-pht-alarms-topic. Received error: "null (Service: AWSKMS; Status Code: 400; Error Code: AccessDeniedException; Request ID: 4fea0cd9-2182-432e-a0a0-5442996cc605; Proxy: null)"
Environment
CLI Version : 1.70
Framework Version: Python 3.8.5
Node.js Version: v14.11.0
OS : Linux
Language (Version): Python (3.8.5)
Other
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatchbugThis issue is a bug.This issue is a bug.closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp1