CodePipeline

AWS CodePipeline is a continuous delivery service that automates the build, test, and deploy phases of software release pipelines. It orchestrates pipeline stages and actions, tracking execution status, source revisions, and approval steps across a release process.

With this integration, you can:

  • Inspect pipelines: List pipelines, retrieve a pipeline's stage and action structure, and check its current execution state
  • Track executions: Get details on a specific execution or list recent executions and action-level history, including status, triggers, and source revisions
  • Control pipeline flow: Start or stop executions, retry failed stages, and approve or reject pending manual approval actions
  • Manage stage transitions: Disable or re-enable artifact transitions into or out of a stage to freeze or resume a pipeline

In Zoen, the AWS CodePipeline integration allows your agents to monitor and control release pipelines programmatically — listing pipelines and their structure, checking execution and action status, starting or stopping executions, retrying failed stages, approving or rejecting manual approvals, and enabling or disabling stage transitions. This lets your agents build deployment automation and approval workflows that respond to pipeline state in real time.

Usage Instructions

Integrate AWS CodePipeline into workflows. Start, stop, and monitor pipeline executions, retry failed stages, and approve or reject manual approval actions. Requires AWS access key and secret access key.

Actions

codepipeline_list_pipelines

List all CodePipeline pipelines in an AWS account and region

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
maxResultsnumberNoMaximum number of pipelines to return (1-1000)
nextTokenstringNoPagination token from a previous call

Output

ParameterTypeDescription
pipelinesarrayList of pipelines with name, version, type, and timestamps
namestringPipeline name
versionnumberPipeline version number
pipelineTypestringPipeline type (V1 or V2)
executionModestringExecution mode (QUEUED, SUPERSEDED, PARALLEL)
creatednumberEpoch ms when the pipeline was created
updatednumberEpoch ms when the pipeline was last updated
nextTokenstringPagination token for the next page of results

codepipeline_get_pipeline

Get the structure of a CodePipeline pipeline, including its stages, actions, and variables

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
versionnumberNoPipeline version to retrieve (defaults to the current version)

Output

ParameterTypeDescription
pipelineNamestringPipeline name
pipelineArnstringPipeline ARN
roleArnstringIAM role ARN the pipeline assumes
versionnumberPipeline version number
pipelineTypestringPipeline type (V1 or V2)
executionModestringExecution mode (QUEUED, SUPERSEDED, PARALLEL)
artifactStoreTypestringArtifact store type (S3)
artifactStoreLocationstringArtifact store bucket location
stagesarrayPipeline stages with their actions (name, category, provider, configuration)
stageNamestringStage name
actionsarrayActions in the stage, in run order
variablesarrayPipeline variable declarations with default values
namestringVariable name
defaultValuestringDefault value
descriptionstringVariable description
creatednumberEpoch ms when the pipeline was created
updatednumberEpoch ms when the pipeline was last updated

codepipeline_get_pipeline_state

Get the current state of a CodePipeline pipeline, including stage and action status and pending approval tokens

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline

Output

ParameterTypeDescription
pipelineNamestringPipeline name
pipelineVersionnumberPipeline version number
creatednumberEpoch ms when the pipeline was created
updatednumberEpoch ms when the pipeline was last updated
stageStatesarrayPer-stage state including latest execution status and action details
stageNamestringStage name
statusstringLatest stage execution status (InProgress, Succeeded, Failed, Stopped, Cancelled)
pipelineExecutionIdstringPipeline execution ID currently in the stage
inboundTransitionEnabledbooleanWhether the inbound transition into the stage is enabled
actionStatesarrayPer-action state with status, summary, error details, and approval token (for pending manual approvals)

codepipeline_get_pipeline_execution

Get details of a CodePipeline execution, including status, trigger, source revisions, and resolved variables

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
pipelineExecutionIdstringYesID of the pipeline execution

Output

ParameterTypeDescription
pipelineExecutionIdstringPipeline execution ID
pipelineNamestringPipeline name
pipelineVersionnumberPipeline version number
statusstringExecution status (Cancelled, InProgress, Stopped, Stopping, Succeeded, Superseded, Failed)
statusSummarystringStatus summary for the execution
executionModestringExecution mode (QUEUED, SUPERSEDED, PARALLEL)
executionTypestringExecution type (STANDARD or ROLLBACK)
triggerTypestringWhat triggered the execution (e.g., Webhook, StartPipelineExecution)
triggerDetailstringDetail about the trigger (e.g., user ARN)
artifactRevisionsarraySource artifact revisions for the execution
namestringArtifact name
revisionIdstringRevision ID (e.g., commit SHA)
revisionSummarystringRevision summary (e.g., commit message)
revisionUrlstringURL of the revision
creatednumberEpoch ms when the revision was created
variablesarrayResolved pipeline variables for the execution
namestringVariable name
resolvedValuestringResolved variable value

codepipeline_list_pipeline_executions

List recent executions of a CodePipeline pipeline with status and source revisions

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
maxResultsnumberNoMaximum number of executions to return (1-100, default 100)
nextTokenstringNoPagination token from a previous call
succeededInStagestringNoOnly return executions that succeeded in this stage

Output

ParameterTypeDescription
executionsarrayPipeline execution summaries, most recent first
pipelineExecutionIdstringPipeline execution ID
statusstringExecution status (Cancelled, InProgress, Stopped, Stopping, Succeeded, Superseded, Failed)
statusSummarystringStatus summary for the execution
startTimenumberEpoch ms when the execution started
lastUpdateTimenumberEpoch ms when the execution was last updated
executionModestringExecution mode (QUEUED, SUPERSEDED, PARALLEL)
executionTypestringExecution type (STANDARD or ROLLBACK)
stopTriggerReasonstringReason the execution was stopped, if applicable
triggerTypestringWhat triggered the execution
triggerDetailstringDetail about the trigger
rollbackTargetPipelineExecutionIdstringExecution ID this run rolled back to, if it was a rollback
sourceRevisionsarraySource revisions (commit IDs, summaries, URLs) for the execution
nextTokenstringPagination token for the next page of results

codepipeline_list_action_executions

List action-level execution history for a CodePipeline pipeline, including per-action status, timing, and error details

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
pipelineExecutionIdstringNoOnly return action executions for this pipeline execution
maxResultsnumberNoMaximum number of action executions to return (1-100, default 100)
nextTokenstringNoPagination token from a previous call

Output

ParameterTypeDescription
actionExecutionDetailsarrayAction execution history, most recent first
pipelineExecutionIdstringPipeline execution ID
actionExecutionIdstringAction execution ID (use as the approval token for PARALLEL execution-mode pipelines)
pipelineVersionnumberPipeline version number
stageNamestringStage the action belongs to
actionNamestringAction name
startTimenumberEpoch ms when the action started
lastUpdateTimenumberEpoch ms when the action was last updated
updatedBystringWho or what last updated the action
statusstringAction execution status (InProgress, Abandoned, Succeeded, Failed)
externalExecutionIdstringID of the external system execution (e.g., CodeBuild build ID)
externalExecutionSummarystringSummary from the external system execution
externalExecutionUrlstringURL of the external system execution
errorCodestringError code if the action failed
errorMessagestringError message if the action failed
nextTokenstringPagination token for the next page of results

codepipeline_start_execution

Start a CodePipeline pipeline execution, optionally overriding pipeline variables

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline to start
clientRequestTokenstringNoIdempotency token to identify a unique execution request
variablesjsonNoPipeline variable overrides as an array of { name, value } objects

Output

ParameterTypeDescription
pipelineExecutionIdstringID of the pipeline execution that was started

codepipeline_stop_execution

Stop a CodePipeline pipeline execution, either finishing in-progress actions or abandoning them

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
pipelineExecutionIdstringYesID of the pipeline execution to stop
abandonbooleanNoAbandon in-progress actions instead of letting them finish (default false)
reasonstringNoReason for stopping the execution (max 200 characters)

Output

ParameterTypeDescription
pipelineExecutionIdstringID of the pipeline execution that was stopped

codepipeline_retry_stage_execution

Retry the failed actions (or all actions) of a failed CodePipeline stage

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
stageNamestringYesName of the failed stage to retry
pipelineExecutionIdstringYesID of the pipeline execution in the failed stage
retryModestringYesScope of the retry: FAILED_ACTIONS or ALL_ACTIONS

Output

ParameterTypeDescription
pipelineExecutionIdstringID of the pipeline execution with the retried stage

codepipeline_put_approval_result

Approve or reject a pending CodePipeline manual approval action. The approval token is available from Get Pipeline State on the pending approval action

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
stageNamestringYesName of the stage containing the approval action
actionNamestringYesName of the manual approval action
tokenstringYesApproval token from Get Pipeline State for the pending approval
statusstringYesApproval decision: Approved or Rejected
summarystringYesSummary explaining the approval decision (max 512 characters)

Output

ParameterTypeDescription
approvedAtnumberEpoch ms when the approval or rejection was submitted
statusstringThe submitted approval decision (Approved or Rejected)

codepipeline_disable_stage_transition

Prevent artifacts from transitioning into or out of a CodePipeline stage, freezing the pipeline at that point

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
stageNamestringYesName of the stage to disable the transition for
transitionTypestringYesInbound to block artifacts entering the stage, Outbound to block artifacts leaving it
reasonstringYesReason the transition is disabled, shown in the pipeline console (max 300 characters)

Output

ParameterTypeDescription
pipelineNamestringPipeline name
stageNamestringStage whose transition was disabled
transitionTypestringTransition type that was disabled (Inbound or Outbound)

codepipeline_enable_stage_transition

Re-enable artifacts transitioning into or out of a CodePipeline stage after it was disabled

Input

ParameterTypeRequiredDescription
awsRegionstringYesAWS region (e.g., us-east-1)
awsAccessKeyIdstringYesAWS access key ID
awsSecretAccessKeystringYesAWS secret access key
pipelineNamestringYesName of the pipeline
stageNamestringYesName of the stage to enable the transition for
transitionTypestringYesInbound to allow artifacts entering the stage, Outbound to allow artifacts leaving it

Output

ParameterTypeDescription
pipelineNamestringPipeline name
stageNamestringStage whose transition was enabled
transitionTypestringTransition type that was enabled (Inbound or Outbound)

On this page