DEV Community

Discussion on: AWS CDK: Per-Environment Configuration Patterns

Collapse
 
eriklz profile image
Erik Lundevall Zara

I prefer to use method 3 for Constructs, and to some extent Stacks.

Per-environment data may come from configuration parameters you store in your project, from Systems Manager Parameter Store, Secrets Manager, other stacks, etc.
At least for Constructs I try to keep the interface the same, so it does not need to care which way the parameter data has been retrieved, thus always method 3 for those.

For Stacks, that may vary a bit.