Configuration

Standard CDK rules apply but, we have some added prerequisites, recommendations, and caveats.

Prerequisites

We strongly recommend you commit the package-lock.json that is generated after running npm install.

Environments

Unlike some other module types, CDK does not have a file that can be used to configure an environment. It can only be configured using the deployment.environments/module.environments field.

Example

deployments:
  - modules:
      - path: mycdkmodule.cdl
        environments:
          dev: true
          prod: true
  - modules:
      - path: myothercdkmodule.cdk
    environments:
      dev: true
      prod: true

Options

build_steps: Optional[List[str]] = None

Shell commands to be run before processing the module.

See Build Steps for more details.

Example

options:
  build_steps:
    - npx tsc
skip_npm_ci: bool = False

Skip running npm ci in the module directory prior to processing the module. See Disable NPM CI for more details.

Example

options:
  skip_npm_ci: true