Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

CLI helper for AWS CodeBuild and CodePipeline

Project description

Build Status Read the docs Version License

CodeBuilder is a CLI tool which allows developpers to use simple commands and helpers inside AWS CI/CD tools like CodePipeline and CodeBuild.

Quick Start

Generally, you would run CodeBuilder on an AWS CodeBuild environment where AWS CLI is properly installed and configured. CodeBuilder uses the exact same authentication method as Boto 3 and AWS CLI.

Install with pip:

$ pip install codebuilder

Example CodeBuild usage (buildspec.yml):

version: 0.1
environment_variables:
  plaintext:
    KMS_CIPHERBLOB: "AQEC..."

phases:
  install:
    commands:
      - pip install codebuilder
  pre_build:
    commands:
      - codebuilder aws ecr login
      - codebuilder aws kms decrypt ${KMS_CIPHERBLOB} > ${CODEBUILD_SRC_DIR}/secret
  build:
    commands:
      - docker build -t 123456789012.dkr.ecr.eu-west-1.amazonaws.com/foo .
  post_build:
    commands:
      - docker push 123456789012.dkr.ecr.eu-west-1.amazonaws.com/foo
      - codebuilder docker --image-name 123456789012.dkr.ecr.eu-west-1.amazonaws.com/foo get-image full --source-json-file config.json --in-place Parameters DockerImage
      - codebuilder aws ecr prune

Project details


Download files

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

Files for codebuilder, version 0.0.1a3
Filename, size File type Python version Upload date Hashes
Filename, size codebuilder-0.0.1a3-py2.py3-none-any.whl (11.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size codebuilder-0.0.1a3.tar.gz (12.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page