airhacks.fm podcast with adam bien· Folge 403

From CloudFormation to CDK with Java

Sonntag, 5. Juli 2026 · 1 h 05

MP3

Shownotes

An airhacks.fm conversation with Thorsten Hoeger (@hoegertn (twitter.com/hoegertn)) about:
discussion about CloudFormation (aws.amazon.com/cloudformation) as underlying infrastructure as code using JSON/YAML to define desired state,
CDK (docs.aws.amazon.com/cdk/v2/guide/work-with-cdk…) introduction as tool to define infrastructure using programming languages like Java (java.com/en) that synthesizes to CloudFormation,
explanation of CDK construct levels L1 (docs.aws.amazon.com/cdk/v2/guide/constructs.ht…) (direct CloudFormation mapping),
L2 (type-safe with opinionated defaults),
L3 (patterns and abstractions),
Custom resources (docs.aws.amazon.com/cdk/api/v2/java/software/a…) for missing CloudFormation implementations or actions like cleaning S3 (aws.amazon.com/s3) buckets,
CDK resource provider framework (docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-li…) simplifying custom resource creation by handling AWS Lambda (docs.aws.amazon.com/lambda/latest/dg/lambda-ja…) lifecycle,
Self-mutating pipelines (docs.aws.amazon.com/codepipeline/latest/usergu…) concept using CDK to update own pipeline,
CDK for Terraform (CDKtf) (github.com/hashicorp/terraform-cdk) enabling Terraform synthesis using CDK constructs,
github.com/aws/jsii facilitating multi-language support for CDK constructs,
Mixins feature (github.com/aws/aws-cdk/releases/tag/2.130.0) allowing immediate modification of constructs without full L2/L3 abstraction,
Refactoring constructs (docs.aws.amazon.com/cdk/v2/guide/constructs.ht…) to move code between construct tree levels,
CloudFormation Naming conventions (docs.aws.amazon.com/cdk/v2/guide/naming.html) using PascalCase for constructs and kebab-case for CloudFormation resource names

Thorsten Hoeger on twitter: @hoegertn (twitter.com/hoegertn)

0:00 / 0:00