-
Notifications
You must be signed in to change notification settings - Fork 0
CloudFormationIaCGenerator
title: CloudFormation IaC Generator and CDK Migrate radar_quadrant: Techniques radar_ring: Assess radar_position: inner created: 2026-05-22 last_updated: 2026-05-22 related: ["TerraformTesting", "TwelveFactorApp", "K3sOracleCloud"]
CloudFormation IaC Generator and CDK Migrate are two AWS tools released in late 2023 that together form a reverse-IaC adoption pipeline: scanning live AWS resources to produce CloudFormation templates, then converting those templates into CDK code.
Step 1 — IaC Generator: Scans an AWS account and generates CloudFormation templates from existing live resources. Targets teams with manually created ("click-ops") infrastructure that has never been version-controlled. Output is CloudFormation YAML suitable for import into a new or existing stack.
Step 2 — CDK Migrate: Accepts a CloudFormation template and converts it to CDK code in TypeScript, Python, Java, or Go. Pairs with IaC Generator to produce a two-step path from live resources to CDK.
- IaC Generator output is verbose and requires cleanup; not all resource types are supported
- CDK Migrate produces L1 constructs (raw CloudFormation equivalents), not idiomatic L2/L3 CDK; refactoring toward higher-level constructs is a separate step
- Both tools are best treated as a starting point, not production-ready output
CloudFormation IaC Generator and CDK Migrate sit at Techniques → Assess inner. The reverse-IaC pattern eliminates the blank-page problem for teams with legacy click-ops AWS infrastructure — generating something compilable quickly, then refactoring toward idiomatic code. This is directly applicable before applying Terraform Testing or Twelve-Factor App practices to existing AWS environments. Yan Cui's review (theburningmonk.com, Feb 2024) confirmed both tools are functional but require post-generation cleanup. The remaining gate before Trial is a completed pipeline run against a real AWS account with at least one resource type successfully imported into a stack.