Skip to main content

Tools for AWS CodePipeline.

Project description

codepiper

PyPI version shields.io

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 the CommitId from source stage as a user defined environment variable to your CodeBuild project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codepiper-0.1.8.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

codepiper-0.1.8-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file codepiper-0.1.8.tar.gz.

File metadata

  • Download URL: codepiper-0.1.8.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for codepiper-0.1.8.tar.gz
Algorithm Hash digest
SHA256 fc2752d3c1bab6c7d69a85b167ec7a90c1b50ac462013adeab4f5b13ebc15559
MD5 018af351219910b934e547570e17dd1d
BLAKE2b-256 bb710d5da1a2c0d101a38cc457570cf282d77cd7a08927d9c10d63c99d6aa339

See more details on using hashes here.

File details

Details for the file codepiper-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: codepiper-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for codepiper-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a0c294eef6539237899dae3f189dfbd2b0d6bbf98e11b6d9fbb0879d9aab14
MD5 5ac672df49cfa81860286ba751ff41a4
BLAKE2b-256 216e8d57bad2670248b205a5c7b801f5222cc47f81f58e400fc6bbf6028c0a0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page