Credit to this post.
Pre-requisites
- nx project
- nx @nrwl/workspace library
1. In the root of your project, reate a new folder to place your cdk files.
md cdk
2. Run the cdk init command
npx cdk init app --language=typescript
3 Moved cdk.json
file from cdk folder to your project root. And replace app with custom js path.
{
"app": "dist/iac/main.js",
...
}
4 Install aws cdk package
npm i --save-dev aws-cdk
npm i aws-cdk-lib constructs
Top comments (0)