Skip to content

A sample CDK project that uses the SDK to retrieve existing resources before synth.

Notifications You must be signed in to change notification settings

ryparker/aws-cdk-sample-import-with-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS CDK (v2) Sample Import with AWS SDK

This is a sample CDK project that uses the AWS SDK to import resources from another stack.

🚀 Quick Start

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

About

A sample CDK project that uses the SDK to retrieve existing resources before synth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published