https://github.com/awsdataarchitect/cdk-import-demo
Open-source code for importing existing KMS-CMK keys created from AWS Management Console into a CDK Stack
https://github.com/awsdataarchitect/cdk-import-demo
automation aws cdk cloudformation kms
Last synced: about 1 month ago
JSON representation
Open-source code for importing existing KMS-CMK keys created from AWS Management Console into a CDK Stack
- Host: GitHub
- URL: https://github.com/awsdataarchitect/cdk-import-demo
- Owner: awsdataarchitect
- Created: 2024-05-17T02:51:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T12:25:58.000Z (about 2 years ago)
- Last Synced: 2025-12-27T15:58:49.858Z (6 months ago)
- Topics: automation, aws, cdk, cloudformation, kms
- Language: TypeScript
- Homepage: https://vivek-aws.medium.com/effectively-managing-your-aws-infrastructure-using-cdk-9190ad7f5fe2
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Open-source repository with end-to-end guide for importing existing KMS-CMK keys created from AWS Management Console into a CDK Stack
This is a CDK project written in TypeScript to demo how to leverage CDK Import, focusing specifically on the migration of KMS keys into your CDK stack.
For more details on how to import and uncomment the code blocks for Step 3 in the stack file, please refer to the [Blog Post](https://medium.com/aws-in-plain-english/effectively-managing-your-aws-infrastructure-using-cdk-9190ad7f5fe2).
The `cdk.json` file tells the CDK Toolkit how to execute your app.
## Useful commands
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `npx cdk deploy` deploy this stack to your default AWS account/region
* `npx cdk diff` compare deployed stack with current state
* `npx cdk synth` emits the synthesized CloudFormation template