Skip to main content

Example: Custom Configurations

Control environment-specific settings for your stacks.

Project configuration

Define project-level config (account, region, stack names) and reference in your CDK app. See:

Environment variables

Use env-specific values (e.g., table throughput, DLQ retention) via environment variables. See:

Multiple environments

nx deploy orders --configuration=dev
nx deploy orders --configuration=staging
nx deploy orders --configuration=prod

Each configuration can point to different AWS accounts/regions.