CLI helper for AWS CodeBuild and CodePipeline
Project description
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
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
codebuilder-0.0.1a3.tar.gz
(12.0 kB
view details)
Built Distribution
File details
Details for the file codebuilder-0.0.1a3.tar.gz
.
File metadata
- Download URL: codebuilder-0.0.1a3.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3471c672fd6ee5014e4c2ea114ef0df541248e0682b49307487928c0ad6481ed |
|
MD5 | 8778d4c22137c254a61e137f6685aa92 |
|
BLAKE2b-256 | 248388534da5646f78706fae62dce17793995b2b9840b441ef39e845813039e0 |
File details
Details for the file codebuilder-0.0.1a3-py2.py3-none-any.whl
.
File metadata
- Download URL: codebuilder-0.0.1a3-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0dda1029469f83d2cf9652a8ef41d5d58e6b4d16cfb479c8983245cdf098a4 |
|
MD5 | 65e7b699f7ac62ad5955026f8176c551 |
|
BLAKE2b-256 | 42bf52bc838da2026fa8524e789cc250d5f7b17bd5070acb682916217cb2dc7e |