Skip to content

DeploymentStrategy

Source: src/AWS/AppConfig/DeploymentStrategy.ts

An AWS AppConfig deployment strategy — defines how a configuration version rolls out to an environment: the total duration, the per-interval growth, and the final bake time during which alarms can trigger a rollback.

All-At-Once (instant, no bake)

const strategy = yield* AppConfig.DeploymentStrategy("Fast", {
deploymentDuration: 0,
growthFactor: 100,
finalBakeTime: 0,
replicateTo: "NONE",
});

Linear rollout over 10 minutes

const strategy = yield* AppConfig.DeploymentStrategy("Linear", {
deploymentDuration: "10 minutes",
growthFactor: 25,
growthType: "LINEAR",
finalBakeTime: "5 minutes",
});