This pattern provides code samples and steps to create both a pipeline in the Amazon Web Services (AWS) Cloud by using AWS CodePipeline and an Amazon Machine Image (AMI) by using HashiCorp Packer. The pattern is based on the continuous integration practice, which 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, create a project and configure your source code by using AWS CodeBuild. Finally, create an AMI that gets committed to your repository.