Menu
AWS CodeBuild
User Guide (API Version 2016-10-06)

AWS CodeBuild Samples

Use these samples to experiment with AWS CodeBuild:

Name Description
Amazon ECR Sample Uses a Docker image in an Amazon ECR repository to use Apache Maven to produce a single JAR file.
Ant Sample Uses JUnit to test whether specific string values are output. Uses Apache Ant to produce a single JAR file.
C++ Sample Uses C++ to output a single .out file.
AWS CodeDeploy Sample Uses Apache Maven to produce a single JAR file. Uses AWS CodeDeploy to deploy the JAR file to an Amazon Linux instance. You can also use AWS CodePipeline to build and deploy the sample.
AWS Lambda Sample Uses AWS CodeBuild along with Lambda, AWS CloudFormation, and AWS CodePipeline to build and deploy a serverless application that follows the AWS Serverless Application Model (AWS SAM) standard.
Build Notifications Sample Uses Apache Maven to produce a single JAR file. Sends a build notification to subscribers of an Amazon SNS topic.
Docker Sample Uses a build image provided by AWS CodeBuild with Docker support to produce a Docker image with Apache Maven. Pushes the Docker image to a repository in Amazon ECR. You can also adapt this sample to push the Docker image to Docker Hub.
Docker in Custom Image Sample Uses a custom Docker image to produce a Docker image.
Elastic Beanstalk Sample Uses Apache Maven to produce a single WAR file. Uses Elastic Beanstalk to deploy the WAR file to an Elastic Beanstalk instance.
Go Sample Uses Go to output a single binary file.
Maven Sample Uses Apache Maven to produce a single JAR file.
Node.js Sample Uses Mocha to test whether an internal variable in code contains a specific string value. Produces a single .js file.
Python Sample Uses Python to test whether an internal variable in code is set to a specific string value. Produces a single .py file.
Ruby Sample Uses RSpec to test whether an internal variable in code is set to a specific string value. Produces a single .rb file.
Scala Sample Uses sbt to produce a single JAR file.
WAR Sample Uses Apache Maven to produce a single WAR file.
.NET Core in Linux Sample Uses .NET Core to build an executable file out of code written in C#.