Skip to content

StartDeployment

Source: src/AWS/AppConfig/StartDeployment.ts

Start an AppConfig deployment from a Lambda (or other AWS runtime) — roll a configuration version out to an environment following a deployment strategy. Pairs with CreateHostedConfigurationVersion to build runtime feature-flag/configuration management services.

Provide AppConfig.StartDeploymentHttp on the hosting function’s Effect to implement the binding.

const startDeployment = yield* AppConfig.StartDeployment(
app,
env,
profile,
strategy,
);
const deployment = yield* startDeployment({
ConfigurationVersion: "2",
});
// deployment.DeploymentNumber, deployment.State ("DEPLOYING", ...)