@otterdev/nx-cdk
v0.0.14
Published
Nx plugin for AWS CDK apps
Downloads
23
Readme
nx-cdk
An Nx plugin which provides support for cdk apps.
Add the plugin to your workspace:
npm install @otterdev-io/nx-cdk
Create a typescript cdk app:
nx g @otterdev/nx-cdk:app <cdk project name>
All CDK commands are supported.
For example, if your project is named web-infra:
Boostrap:
nx run web-infra:boostrap
Synth:
To synth:
nx run web-infra:synth
or you can use
nx run web-infra:build
Which will build dependent projects aswell in the default configuration. Build also suppresses synth output.
Deploy:
nx run web-infra:deploy
Deploy certain stacks:
nx run web-infra:deploy --parameters=WebBackendStack,WebFrontendStack
Supply arguments with --options:
nx run web-infra:deploy --parameters=WebBackendStack,WebFrontendStack --options="--trace --verbose"