Tools for AWS CodePipeline.
Project description
codepiper
This tool provides some utilities for working with AWS CodePipeline:
watch
- Monitor a pipeline for executions and also follow CodeBuild logs.rollback
- Rollback a stage of a pipeline to a prior execution.verify_clear
- Verify that a pipeline is clear, or the details if not.
Watch
To monitor all active executions for a pipeline:
codepiper --profile toolchain --region us-west-2 watch -p my-pipeline-name
To monitor a pipeline along with logs from CodeBuild:
codepiper --profile toolchain --region us-west-2 watch -p my-pipeline-name -f
To monitor one specific execution for a pipeline:
codepiper --profile toolchain --region us-west-2 watch -p my-pipeline-name -e 20b20f00-f63d-4b05-8921-20a4fc16090e
codepiper --profile toolchain --region us-west-2 verify_clear -p my-pipeline-name
Rollback
To rollback a pipeline stage to last successful execution:
codepiper --profile toolchain --region us-west-2 rollback -p my-pipeline-name -s Production
To rollback a pipeline stage to a specific commit id:
codepiper --profile toolchain --region us-west-2 rollback -p my-pipeline-name -s Production -c af32c18
To rollback a pipeline stage and watch logs
codepiper --profile toolchain --region us-west-2 rollback -p my-pipeline-name -s Production -f
Verify Pipeline Clear
To verify that a pipeline is currently clear:
codepiper --profile toolchain --region us-west-2 verify_clear --pipeline my-pipeline-name
Installation
pip install codepiper
Limitations
$CODEBUILD_RESOLVED_SOURCE_VERSION
is unavailable since the CodeBuild execution is not initiated via CodePipeline. The workaround for this is to use CodePipeline Variables to pass theCommitId
from source stage as a user defined environment variable to your CodeBuild project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file codepiper-0.2.0.tar.gz
.
File metadata
- Download URL: codepiper-0.2.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92776921efe37bc2e106a3fa10e0b845fa983a5327e610a532482e263c198a47 |
|
MD5 | b6b8222e35f8a6dee9ef035a86950dc0 |
|
BLAKE2b-256 | 24a1129034170b3fb71f6421302bfc330328ace05816f18f8f49d4b2716fedd1 |
File details
Details for the file codepiper-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: codepiper-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc92cde72be31617ad3818cd4bfecdcc566a112e4d18e99319c3f5b43c3a01fa |
|
MD5 | e0fc4c3ec1c49c4f00ec099acbde12a9 |
|
BLAKE2b-256 | cad2618b58377eb6169aaf63f1d03459f9b3f6c53cd306729245038b505b5de6 |