Skip to content

[cloudwatch] Alarms don't execute on KMS encrypted SNS #11121

@du291

Description

@du291

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchbugThis issue is a bug.closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions