Mandala
Tools

CodePipeline

Run, monitor, and approve AWS CodePipeline pipelines

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.

Tools

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
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)
variablesarrayPipeline variable declarations with default values
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

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
variablesarrayResolved pipeline variables for the execution

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
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
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)

Notes

  • Category: tools
  • Type: codepipeline
CodePipeline