localstack / aws-cdk-local

Thin wrapper script for using the AWS CDK CLI with LocalStack
Apache License 2.0
263 stars 17 forks source link

Missing dependency on aws-cdk in package.json #84

Closed vaartio closed 1 month ago

vaartio commented 1 year ago

Can you add aws-cdk as a dependency in package.json? In some environments, especially with pnp and multiple yarn workspaces, it causes problems if you can't install aws-cdk globally.

whummer commented 1 year ago

Hi @vaartio , thanks for reporting, and apologies for the delay on this one.

The aws-cdk dependency has been removed on purpose in the past, to avoid version mismatches and confusion if the globally installed CDK version differs from the: https://github.com/localstack/aws-cdk-local/issues/3 This allows users to install arbitrary versions of aws-cdk under the covers.

The recommended way of installing cdklocal, as per the README, would be the following:

npm install -g aws-cdk-local aws-cdk

Does this installation mechanism work for you? I'm not too familiar with pnp, but shouldn't it be possible to install aws-cdk alongside aws-cdk-local?

Can you please elaborate on the problem you're seeing - ideally, if you could share a sequence of commands or a reproducible example, that would be great. Thanks for your help!

lakkeger commented 3 months ago

Hi @vaartio! We just wanted to follow up on our last message to see whether your issue has been resolved?

lakkeger commented 1 month ago

Closing this issue due to inactivity.