I'm setting up a Python CDK repo with a few settings that differ between dev, staging, and production. Typed Python classes already catch mistakes early, but a YAML or JSON file seems simpler to edit.
If you use files, do you keep one per environment or put them all together? Do you validate the data before passing it to CDK, and what tradeoffs matter most when choosing between files and code?
r.205~cobaltclip:
Would you keep common values alongside the environment-specific ones?
_u71+papercrank.3:
That can work. A shared section with environment-specific overrides avoids repeating values, but keep the override rule clear so it's obvious which value wins.