This pattern provides code samples and steps to create a pipeline in the Amazon Web Services (AWS) Cloud and deploy updated artifacts to on-premises Amazon Elastic Compute Cloud (Amazon EC2) instances in AWS CodePipeline. The pattern is based on the continuous integration practice. This practice automates the building and testing of code with a Git-based version control system. In this pattern, you create and clone a code repository by using AWS CodeCommit. Then, you create a project and configure your source code by using AWS CodeBuild. Finally, you create your application and configure its target environment for on-premises EC2 instances by using AWS CodeDeploy.