Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/wolfeidau/cbuild
- Owner: wolfeidau
- License: apache-2.0
- Created: 2019-09-17T00:54:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T02:57:56.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T09:44:10.029Z (7 months ago)
- Topics: aws, codebuild, golang, sam
- Language: Go
- Homepage: https://github.com/wolfeidau/cbuild
- Size: 96.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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-2export 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.