Standard CDK rules apply but, we have some added prerequisites, recommendations, and caveats.
CDK must be a dev dependency of the module (e.g.
npm install --save-dev aws-cdk)
We strongly recommend you commit the package-lock.json that is generated after running
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).
--- 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