CL8: Create AWS Pipeline

Task: Setup AWS Pipeline

Create SNS Topic & Subscription

Create a new SNS topic and choose a desired name (make sure to stick to the same AWS region)

Preparation menu

Create a related email subscription, as follows

Preparation menu

Note: After your email subscription is created, you must confirm it!

Setup Pipeline

Start by creating a new pipeline as follows. Pipeline name could be like your application / artifactId.

Preparation menu

As source, select your AWS CodeCommit repository.

Note: The following steps are based on using AWS CodeCommit. For other repositories please check the documentation

Preparation menu

Create a new AWS CodeBuild project:

Preparation menu

Name could be like your application / artifactId.

Preparation menu

Note: Make sure to select the Ubuntu Image Version 2.0, due to the OpenJDK dependency

Preparation menu

Leave as is and continue to CodePipeline.

Preparation menu

Proceed with the CodePipeline wizard:

Preparation menu

Finish wizard, deploy stage will be added later!

Preparation menu

Test

Once the pipeline has been successfully created, it will automatically be triggered based on your last commit.

Preparation menu

You can check out the build output by clicking the Details button inside the Build stage.

Preparation menu

You can also check the aggregated Build Reports via CodeBuild -> Report groups.

Preparation menu

Congratulations, you have created your first build pipeline. Let’s proceed to the next step for adding an approval as well as the deployment stage.