How to import existing resources into AWS CDK Stacks
Blog
This article explains how to import existing AWS resources into AWS Cloud Development Kit (CDK) stacks using two methods: manually through the AWS CloudFormation console and automated using the "cdk import" command.
Specifically, the article covers:
- An introduction to AWS CDK and its benefits
- A manual walkthrough for importing resources into a CDK stack by:
- Updating the CDK stack code to include the resource
- Generating a CloudFormation template from the CDK stack
- Importing the resource via the CloudFormation console
- Deploying the updated CDK stack
- An automated walkthrough using the "cdk import" command
- Prerequisites and cleanup steps
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.