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 file that can be used to configure an environment. It can only be configured using the environments option of a deployment and/or module (see Runway Config File for details).

Runway Config

Top-level

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

In Module Directory

---
environments:
  dev: true
  prod: true