Back to Catalog
Developer Tools

AWS CDK

"Define cloud infrastructure using familiar programming languages (IaC)."

What is AWS Cloud Development Kit (CDK)?

AWS CDK is an open-source software development framework to define your cloud application resources using familiar programming languages like TypeScript, Python, Java, and C#.

Key Concepts

1. Infrastructure as Code (in Real Code)

  • Instead of writing JSON/YAML (CloudFormation), you write Python or TypeScript classes.
  • The CDK compiles (synthesizes) your code into a CloudFormation template.

2. Constructs

  • Reusable cloud components.
  • High-level constructs (Level 2) come with sensible defaults (e.g., new Vpc(this, 'VPC') creates public/private subnets, NAT Gateways, and Route Tables automatically).

Exam Tips

[!IMPORTANT] "Define infrastructure using Python/TypeScript/Java" (programming languages) rather than JSON/YAML: The answer is AWS CDK.

Common Use Cases

  • Developer Efficiency: Developers prefer writing Python over YAML.
  • Abstraction: Building a reusable "StandardCompanyService" class that teams can instantiate easily.
FIS
App. Composer
SWIPE ZONE
< DRAG ME >