Skip to content

CreateDeployment

Source: src/AWS/CodeDeploy/CreateDeployment.ts

Runtime binding for codedeploy:CreateDeployment — lets a workload start a deployment through the bound deployment group (e.g. shifting a Lambda alias or rolling an EC2 fleet to a new revision).

The response carries the created deploymentId, which can be observed with the GetDeployment binding.

const createDeployment = yield* AWS.CodeDeploy.CreateDeployment(group);
const { deploymentId } = yield* createDeployment({
revision: {
revisionType: "S3",
s3Location: { bucket, key, bundleType: "zip" },
},
});