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)

Node

Create a related email subscription, as follows

Node

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.

Node

As source, select your AWS CodeCommit repository.

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

Node

Create a new AWS CodeBuild project:

Node

Name could be like your application / artifactId.

Node

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

Node

Leave as is and continue to CodePipeline.

Node

Proceed with the CodePipeline wizard:

Node

Finish wizard, deploy stage will be added later!

Node

Test

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

Node

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

Node

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

Node

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.