When CloudFormation templates exceed 3000 lines, developers repeatedly ask the same question. "Is this really code?" YAML has no functions, no variable scope, weak autocomplete, and applying the same pattern to 50 microservices leaves only copy-paste. 2018's AWS CDK (Cloud Development Kit) addresses exactly this limit. Define infrastructure in generic languages like TypeScript/Python/Java/Go/.NET and cdk synth synthesizes ordinary CloudFormation templates. SAM applied macros atop CloudFormation; CDK climbs one more level — treating language itself as an abstraction tool.