aws-cdk-lib/aws-sns-subscriptions: Cannot add SqsSubscription when using an Sqs Construct from a SymLinked Constructs Library #27225
Labels
@aws-cdk/aws-sqs
Related to Amazon Simple Queue Service
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Describe the bug
Users can't add an SqsSubscription to an Sns Topic using the "addSubscription" method when the created queue came from a symlinked constructs library
Expected Behavior
Users can add an SqsSubscription to an Sns Topic using the "addSubscription" method regardless of whether it came from a symlinked constructs library or not
Current Behavior
Stack trace:
Reproduction Steps
cdk synth
Example code:
Possible Solution
aws-cdk/packages/@aws-cdk/aws-sns-subscriptions/lib/sqs.ts
Lines 33 to 38 in f3fd183
This guard clause should be:
Reference: aws/constructs@bef8e4d
Additional Information/Context
No response
CDK CLI Version
2.93.0
Framework Version
No response
Node.js Version
18
OS
Ubuntu 22.04.3 LTS
Language
Typescript
Language Version
4.9.5
Other information
No response
The text was updated successfully, but these errors were encountered: