AWS CDK
Cloud Development Kit
ELI5 — The Vibe Check
CDK lets you define your cloud infrastructure using actual programming languages instead of YAML. It's like the difference between writing a recipe in English vs. pointing and grunting. You get loops, conditionals, type safety, and autocomplete — all the things that make YAML developers weep with jealousy.
Real Talk
AWS Cloud Development Kit (CDK) is an open-source framework that lets you define cloud infrastructure using familiar programming languages like TypeScript, Python, Java, or Go. It synthesizes your code into CloudFormation templates, providing higher-level abstractions (constructs) that bundle best practices and sensible defaults.
Show Me The Code
import * as cdk from 'aws-cdk-lib';
import * as lambda from 'aws-cdk-lib/aws-lambda';
const fn = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.NODEJS_20_X,
handler: 'index.handler',
code: lambda.Code.fromAsset('lambda'),
});
When You'll Hear This
"We migrated from raw CloudFormation to CDK and our infra code is actually readable now." / "CDK constructs handle all the IAM boilerplate for you."
Related Terms
AWS (Amazon Web Services)
AWS is like a giant magical warehouse where you can rent computers, storage, databases, and basically anything tech-related — by the minute.
Infrastructure as Code
ClickOps means building your cloud infrastructure by clicking buttons in AWS console.
Pulumi
Pulumi is Terraform but you use TypeScript (or Python or Go) instead of HCL. Real for-loops, real functions, real abstractions.
Terraform
Terraform is a tool that lets you describe your entire cloud infrastructure in code files, then type one command to make it real.