Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryparker/aws-cdk-sample-import-with-sdk
A sample CDK project that uses the SDK to retrieve existing resources before synth.
https://github.com/ryparker/aws-cdk-sample-import-with-sdk
Last synced: about 2 months ago
JSON representation
A sample CDK project that uses the SDK to retrieve existing resources before synth.
- Host: GitHub
- URL: https://github.com/ryparker/aws-cdk-sample-import-with-sdk
- Owner: ryparker
- Created: 2021-11-23T19:51:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T18:38:42.000Z (almost 2 years ago)
- Last Synced: 2024-05-28T16:54:07.775Z (7 months ago)
- Language: TypeScript
- Size: 271 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
## :rocket: Quick Start
_Prerequisite: Have [CDK credentials exported in shell env](https://docs.aws.amazon.com/cdk/latest/guide/environments.html) or replace values in `./src/constants.ts`_
**1. Install dependencies with Yarn v1**
```shell
yarn install
```**2. Create the [bootstrap stack](https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html) in your AWS account**
_This only needs to be ran once per account/region._```shell
yarn bootstrap
```**3. Build Cloudformation files**
```shell
yarn build StackA
```**4. Deploy Stack A**
```shell
yarn deploy StackA
```**5. Uncomment StackB code in `./src/index.ts`, then build and deploy**
```shell
yarn build StackB
yarn deploy StackB
```