Skip to content

StartPipelineExecution

Source: src/AWS/CodePipeline/StartPipelineExecution.ts

Runtime binding for codepipeline:StartPipelineExecution — lets a workload kick off an execution of a pipeline (optionally overriding pipeline variables or source revisions).

The response carries the pipelineExecutionId, which can be observed with the GetPipelineExecution binding.

const startExecution = yield* AWS.CodePipeline.StartPipelineExecution(pipeline);
const { pipelineExecutionId } = yield* startExecution({
variables: [{ name: "ENV", value: "prod" }],
});