This is a sample CDK project that uses the AWS SDK to import resources from another stack.
Prerequisite: Have CDK credentials exported in shell env or replace values in ./src/constants.ts
1. Install dependencies with Yarn v1
yarn install
2. Create the bootstrap stack in your AWS account This only needs to be ran once per account/region.
yarn bootstrap
3. Build Cloudformation files
yarn build StackA
4. Deploy Stack A
yarn deploy StackA
5. Uncomment StackB code in ./src/index.ts
, then build and deploy
yarn build StackB
yarn deploy StackB