AWS Cloud Development Kit (CDK) Posts

Importing AWS Resources to CDK Apps with Python

Shikisoft Blog - Importing existing AWS resources to AWS CDK stacks

In my AWS CDK with Python Step by Step course, I teach you to define your constructs from the ground up. You learn to specify your AWS resources through CDK constructs using Python’s object-oriented methods.

However, what if you need to use or reference an existing resource from your AWS account, such as a VPC? Can you import a resource to your AWS CDK app?

So, in this blog post, I will discuss how to import an existing resource as a CDK construct. But you cannot achieve this in environment-agnostic stacks. Hence, we will start with specifying targetted CDK environments for your CDK stacks.

Continue reading the Importing AWS Resources to CDK Apps with Python blog post.

AWS CDK Construct Levels: How do L1, L2, and L3 Construct Types Differ?

AWS CDK Construct Levels

If you tried learning AWS CDK, you might have realized that three levels of CDK construct types exist when defining an AWS resource: L1, L2, and L3 (also called ‘CDK patterns’). So, deciding which CDK construct level to choose may become confusing. Sometimes, a resource’s different construct classes are even named similarly. Then, are there any advantages you get by choosing one over another?

You aren’t alone if you feel the same. This was also what I felt while learning AWS CDK. So, in this post, I will discuss AWS CDK construct levels to help you understand their differences.

I thoroughly cover them with hands-on examples in my AWS CDK with Python Step by Step course. Still, this post will be a nice addition as a summary of these crucial AWS CDK concepts.

Continue reading the AWS CDK Construct Levels: How do L1, L2, and L3 Construct Types Differ? blog post.

AWS CDK vs. AWS CloudFormation

AWS CDK vs. AWS CloudFormation

AWS CDK and AWS CloudFormation are powerful infrastructure as code tools to automate the creation of your AWS resources. Both tools can help you achieve operational excellency on AWS by removing manual provisioning methods like AWS Management Console or AWS CLI and eliminating possible human errors caused by only using them.

However, you might be wondering which to choose if you are new to AWS CDK or CloudFormation or just beginning to apply infrastructure as code on AWS. Therefore, in this post, I will discuss the differences and similarities between AWS CloudFormation and AWS CDK to help you understand them.

Continue reading the AWS CDK vs. AWS CloudFormation blog post.