Project rules
AWS CDK Rules
Project rules for AWS CDK in TypeScript: construct layers, stable naming, removal policies, assertion tests and a mandatory cdk diff review.
CLAUDE.md
1Layout
2- `bin/` holds the app entry, `lib/constructs/` reusable constructs, `lib/stacks/` deployable stacks, `test/` the tests. Keep stacks thin and put logic in constructs.
3- Prefer L2 constructs. Drop to L1 (`Cfn*`) or escape hatches only with a comment saying what the L2 lacks.
4- Pass environment as props (account, region, stage) from the app file. Never read `process.env` inside a construct and never hard-code account IDs.
5Naming and state
awstypescript
#
AWS CDK Rules
Project rulesaws
Free