DeploymentConfig
Source:
src/AWS/CodeDeploy/DeploymentConfig.ts
A custom AWS CodeDeploy deployment configuration — the rules for how
traffic shifts during a deployment (canary/linear traffic routing for
Lambda/ECS, minimum-healthy-hosts and zonal rollout for Server).
Deployment configurations are immutable: any change replaces the
configuration.
Creating a Deployment Config
Section titled “Creating a Deployment Config”Lambda Canary Config
const config = yield* CodeDeploy.DeploymentConfig("canary", { computePlatform: "Lambda", trafficRoutingConfig: { type: "TimeBasedCanary", timeBasedCanary: { canaryPercentage: 10, canaryInterval: 5 }, },});Server Config with Minimum Healthy Hosts
const config = yield* CodeDeploy.DeploymentConfig("half-fleet", { computePlatform: "Server", minimumHealthyHosts: { type: "FLEET_PERCENT", value: 50 },});