Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wolfeidau/cbuild

This is a command line tool which enables you to upload and build in the AWS using AWS CodeBuild.
https://github.com/wolfeidau/cbuild

aws codebuild golang sam

Last synced: 2 months ago
JSON representation

This is a command line tool which enables you to upload and build in the AWS using AWS CodeBuild.

Awesome Lists containing this project

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](https://aws.amazon.com/serverless/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.