aws-sns: addSubscription() doesn't add necessary policies for messages to be sent #29098
Labels
@aws-cdk/aws-sns
Related to Amazon Simple Notification Service
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
To subscribe an SNS to an SQS, you can write something like
and expect the messages to reach SQS. But this is not happening. On further debugging, I found that the
sqs:SendMessage
permission is not granted to the SNS.Expected Behavior
SNS should be granted the required permissions to send messages to SQS.
Current Behavior
Necessary permissions are not added to SNS or SQS
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.123.0
Framework Version
No response
Node.js Version
v16.20.2
OS
Linux/UNIX
Language
TypeScript
Language Version
No response
Other information
Similar to #12120
The text was updated successfully, but these errors were encountered: