CDK Applications
CDK Applications define complete deployments of one or more Runtime Elements. They are defined in src/cdk/apps/, with one subdirectory per concrete environment group (e.g., Al1x/).
Role of Applications
Section titled “Role of Applications”Applications orchestrate Stacks — they do not use low-level constructs directly. Their responsibilities:
- Instantiate the Stacks needed for the target Infrastructure and Partition
- Retrieve runtime values: CloudFormation Outputs from previously deployed stacks, or AWS SDK calls where needed
- Pass those values as
Propsto the stacks they deploy
Applications are not designed to be configurable beyond the naming and identifiers of the elements to deploy and the AWS credentials for deployment.
Structure
Section titled “Structure”Each application lives in its own subdirectory:
src/cdk/apps/└── Al1x/ └── app.ts # CDK Application entry point └── (support files)The app.ts file contains the cdk.App instantiation and the stack invocations. Each application has a dedicated CI/CD configuration that deploys it to the correct AWS account and region.
Application vs Stack vs Construct
Section titled “Application vs Stack vs Construct”| Concept | Granularity | Reusability | Configurability |
|---|---|---|---|
| Construct | Single resource group | Fully reusable | High (via Props) |
| Stack | Complete Runtime Element (Infra/Partition/Component) | Reusable with parametrization | Medium |
| App | Full deployment (one or more Elements) | One per concrete environment group | Low (mostly hardcoded) |
Component Applications
Section titled “Component Applications”Applications primarily deploy Infrastructure and Partition elements. Deploying Component elements is possible for utility or testing components, or temporarily when sharing construct code across repositories is impractical.
Copyright: © Arda Systems 2025-2026, All rights reserved