Git Product home page Git Product logo

codebuild-demo's Introduction

codebuild-demo

This repository contains sample code (java and python) as well as scripts and CloudFormation templates that will help you get started with AWS CodeBuild.

CodeBuild and GitHub

The "connect_codebuild_to_github.sh" script at the root of the repository uses a personal access token for the GitHub user "codebuild-demo" in order to connect your AWS account with CodeBuild. The CodeBuild demo projects defined in the CloudFormation templates connect to this public repository, but the CodeBuild service has a requirement that you authenticate to GitHub, even when pulling down a public repository. We are using this method because CloudFormation does NOT support adding GitHub credentials/connectivity to CodeBuild at this time.

The "github_creds.json" file contains the credentials.

Region specific

Be aware what region you are operating in, as the CodeBuild service is region specific. If you want to use these credentials to connect CodeBuild to GitHub, so that you can run your CodeBuild builds in a particular region, make sure to set your region appropriately. Example: export AWS_DEFAULT_REGION=us-east-1

Setting up

You'll first need to install the AWS CLI. You should then run the "./connect_codebuild_to_github.sh" shell script, which will connect CodeBuild to GitHub for you.

After that, you can run the CloudFormation templates contained in the programminglanguage-example directories, in order to create CodeBuild build projects for each of those code types. You can upload these CloudFormation templates using the CloudFormation web console, or you can use the CLI. Example: aws cloudformation create-stack --stack-name codebuild-demo --template-body file://python-example/cloudformation_python_build_project.yml --capabilities CAPABILITY_NAMED_IAM

Updates

Trigger another AWS CodePipeline execution.

codebuild-demo's People

Contributors

wes-novack avatar awsdevops009 avatar

Watchers

James Cloos avatar  avatar

Forkers

saibabudevops

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.