Building a Maven project using AWS CodeBuild
- Before we start building our java code we need to complete following pre-req:
- Create a S3 bucket, this will be used to store our java source code, download from here and upload to S3 bucket
- Create one more S3 bucket for storing artifact of Java build
- Setting-up CodeBuild Project
- Navigate to CodeBuild from AWS service menu
- Click on Create Project
- Input a Project name of your choose
- Source, S3 bucket created in Step 1.1 which contains our source code so select the same
- Buildspec is part of zip file in our S3 bucket
- Environment, this will be Ubuntu since we need a linux machine in backend to build our package
- Under artifact select the S3 bucket created in step 1.2, this will hold our builds
- Cloudwatch logs will ingest the logs of our build progress
- Click Create build project
- Now, lets create a build of our project
- Navigate to CodeBuild service and select the Build Project
- Click on Start build
- Click on Start build
- Once the build process is success
- Artifact will be saved in S3 bucket
- Navigate to CodeBuild service and select the Build Project