A structured approach to organizing AWS CDK v2 projects using the BCE (Boundary-Control-Entity) pattern, implemented in Java. The pattern separates stacks (boundary), reusable constructs (control), and immutable data objects (entity). Key principles include: packages named after AWS capabilities, a single CDKApp entry point using typed Java records, pinned regions via a central interface, stack independence via resource interfaces rather than stack references, least-privilege IAM via grant* methods, and deterministic synthesis. The approach ships as an AIrails skill (/aws-cdk) and includes a starter project and example constructs.
225 Impressions