LinuxCommandLibrary

aws-codepipeline

Manage continuous delivery pipelines on AWS.

TLDR

Start a pipeline execution

$ aws codepipeline start-pipeline-execution --name [MyPipeline]
copy
Start with variables
$ aws codepipeline start-pipeline-execution --name [MyPipeline] --variables name=VERSION,value=1.0.0
copy
Get pipeline definition
$ aws codepipeline get-pipeline --name [MyPipeline]
copy
Get pipeline execution details
$ aws codepipeline get-pipeline-execution --pipeline-name [MyPipeline] --pipeline-execution-id [execution-id]
copy
Get current pipeline state
$ aws codepipeline get-pipeline-state --name [MyPipeline]
copy
List all pipelines
$ aws codepipeline list-pipelines
copy
List pipeline executions
$ aws codepipeline list-pipeline-executions --pipeline-name [MyPipeline]
copy
Create a pipeline from JSON
$ aws codepipeline create-pipeline --cli-input-json file://[pipeline.json]
copy

SYNOPSIS

aws codepipeline command [options]

DESCRIPTION

aws codepipeline manages AWS CodePipeline, a continuous delivery service that automates release pipelines for application updates.
Pipelines consist of stages (Source, Build, Test, Deploy) containing actions that perform work like pulling code, running builds, or deploying to environments. Stages execute sequentially, with transitions between them.
start-pipeline-execution triggers a new run using the latest source revision or specified overrides. Pipelines can also be triggered automatically by source changes, schedules, or webhooks.
Pipeline modes control execution behavior: SUPERSEDED (default) cancels older executions when newer ones start, QUEUED processes executions in order, and PARALLEL allows concurrent executions.
Use disable-stage-transition to create a manual approval gate or pause deployments for maintenance.

PARAMETERS

start-pipeline-execution

Manually trigger a pipeline run
get-pipeline
Get pipeline definition and metadata
get-pipeline-state
Get current state of all stages
get-pipeline-execution
Get details of a specific execution
list-pipelines
List all pipelines in the account
list-pipeline-executions
List executions for a pipeline
create-pipeline
Create a new pipeline
update-pipeline
Modify pipeline definition
delete-pipeline
Remove a pipeline
enable-stage-transition
Allow transitions into a stage
disable-stage-transition
Block transitions into a stage
--name pipeline-name
Name of the pipeline
--pipeline-name name
Pipeline name (alternative parameter)
--pipeline-execution-id id
Execution identifier
--variables vars
Pipeline variables (name=KEY,value=VAL)
--source-revisions revisions
Override source versions for execution
--stage-name name
Name of the stage
--transition-type type
Inbound or Outbound transition

CAVEATS

Pipelines have concurrent execution limits. Disabling transitions blocks all following stages, not just the next one. Pipeline variables must be defined in the pipeline before use. Execution history is retained for 12 months.

HISTORY

AWS CodePipeline launched in July 2015 as AWS's continuous delivery service. V2 pipelines with enhanced features including pipeline variables and triggers were introduced in 2023. The service integrates with CodeCommit, CodeBuild, CodeDeploy, and third-party tools like GitHub and Jenkins.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community