Skip to content

Commit 4c4a934

Browse files
committed
docs: guidance on state machine cdk
1 parent e23fbe9 commit 4c4a934

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/instructions/languages/cdk.instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This file provides instructions for generating, reviewing, and maintaining AWS C
2323
- Suppress warnings with `nagSuppressions.ts` only when justified and documented
2424
- Use `bin/` for entrypoint apps, `constructs/` for reusable components, and `stacks/` for stack definitions
2525
- Prefer `props` interfaces for construct configuration
26+
- For Step Functions definitions, prefer a chain-centric style where states are defined inline within `Chain.start(...).next(...)` so the execution flow reads top-to-bottom in one place. Avoid mixing a chain with many separately declared state `const`s instead embedding calls to helper functions in the chain.
2627

2728
## Code Standards
2829

0 commit comments

Comments
 (0)