cbuild

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2021 License: Apache-2.0

README

cbuild

This is a command line tool which enables you to upload and build in the AWS using AWS CodeBuild. I wrote this tool to enable me to overcome the issue of uploading big bundles of code either in zip files or docker containers while on slow internet connections. This tool takes JUST your source code, builds an archive and pushes it to S3, then triggers a build either using a default buildspec.yml or the one in your projects root directory.

Deployment

In the sam folder is an AWS SAM template which deploys a CodeBuild project for building that has minimal access to AWS.

Configuration

This tool expects some environment variables to be exported, in my case I use direnv to export them as I navigate to the project.

This is an example .envrc file, note the xxxx are placeholders for the identifiers which CDK will generate on deploy in your account.

export AWS_PROFILE=myprofile
export AWS_REGION=ap-southeast-2

export SOURCE_BUCKET="builderstack-dev-master-sourcesxxxx"
export ARTIFACT_BUCKET="builderstack-dev-master-artifactsxxxxx"
export BUILD_PROJECT_ARN="Buildxxxx"

Status

This project is still a work in progress and will be feature complete soon.

License

This project is released under Apache 2.0 License.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL