AWS CodePipeline is a continuous delivery service for fast and reliable application updates. You define a pipeline once and CodePipeline automates the build, test, and deploy phases whenever code changes.
With the CodePipeline integration, you can:
- List Pipelines: Enumerate pipelines in a region with metadata such as name, version, and creation time
- Start Pipeline: Trigger a pipeline execution on demand
- Get Pipeline State: Inspect stage and action status for a running or completed pipeline
In AptlyStar, CodePipeline pairs well with CloudFormation and CloudWatch blocks to build release orchestration, deployment verification, and incident response workflows.
Usage Instructions
List pipelines, start executions, and inspect pipeline stage state using AWS access keys.
Tools
codepipeline_list_pipelines
List AWS CodePipeline pipelines in a region
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
awsRegion | string | Yes | AWS region (e.g., us-east-1) |
awsAccessKeyId | string | Yes | AWS access key ID |
awsSecretAccessKey | string | Yes | AWS secret access key |
Output
| Parameter | Type | Description |
|---|---|---|
pipelines | array | Pipeline summaries in the region |
codepipeline_start_pipeline
Start an AWS CodePipeline execution
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
awsRegion | string | Yes | AWS region (e.g., us-east-1) |
awsAccessKeyId | string | Yes | AWS access key ID |
awsSecretAccessKey | string | Yes | AWS secret access key |
pipelineName | string | Yes | Pipeline name to start |
Output
| Parameter | Type | Description |
|---|---|---|
pipelineExecutionId | string | Started pipeline execution id |
codepipeline_get_pipeline_state
Get the current state of an AWS CodePipeline
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
awsRegion | string | Yes | AWS region (e.g., us-east-1) |
awsAccessKeyId | string | Yes | AWS access key ID |
awsSecretAccessKey | string | Yes | AWS secret access key |
pipelineName | string | Yes | Pipeline name to inspect |
Output
| Parameter | Type | Description |
|---|---|---|
pipelineName | string | Pipeline name |
stageStates | array | Stage execution states |