Closed deanbaker closed 1 year ago
Hi @deanbaker , thanks for reporting, and apologies for the very long delay. We haven't been able to replicate this issue - seems like the deployment of the CDK JavaScript sample app succeeds with the latest version:
$ cdklocal init sample-app --language=javascript
...
$ cdklocal bootstrap
...
$ cdklocal deploy
...
┌───┬──────────────────┬────────┬─────────────────┬───────────────────────────┬──────────────────────────────────────────────────┐
│ │ Resource │ Effect │ Action │ Principal │ Condition │
├───┼──────────────────┼────────┼─────────────────┼───────────────────────────┼──────────────────────────────────────────────────┤
│ + │ ${TestQueue.Arn} │ Allow │ sqs:SendMessage │ Service:sns.amazonaws.com │ "ArnEquals": { │
│ │ │ │ │ │ "aws:SourceArn": "${TestTopic}" │
│ │ │ │ │ │ } │
└───┴──────────────────┴────────┴─────────────────┴───────────────────────────┴──────────────────────────────────────────────────┘
(NOTE: There may be security-related changes not in this list. See https://github.com/aws/aws-cdk/issues/1299)
Do you wish to deploy these changes (y/n)? y
TestStack: deploying... [1/1]
[0%] start: Publishing 5add20c85c5bcda32aaf9a438a244060ddaf872f9525711b9c7f67f8a61e8195:current_account-current_region
[100%] success: Published 5add20c85c5bcda32aaf9a438a244060ddaf872f9525711b9c7f67f8a61e8195:current_account-current_region
TestStack: creating CloudFormation changeset...
✅ TestStack
✨ Deployment time: 5.16s
Stack ARN:
arn:aws:cloudformation:eu-central-1:000000000000:stack/TestStack/ba3e4010
✨ Total time: 5.36s
Can you please pull the latest
LocalStack Docker image, install the latest version of cdklocal
, and give it another try? Thanks for your help!
Closing as resolved - please do let us know if the problem persists.. Thanks!
Trying to get localstack and cdklocal working together on WSL Ubuntu. Following the instructions with the sample-app from your github, I get an error when creating the SNS subscription:
cdklocal bootstrap
is successful:cdklocal deploy
fails:When I remove the subscription from the stack by commenting out this line
topic.addSubscription(new subs.SqsSubscription(queue));
I can see the stack has been created successfully - both sqs and sns have been created when I runawslocal sns list-topics
and so on.I can use awslocal to manually create a subscription, so I don't believe it is a problem there