Originally published at:

This Terraform module builds a Docker image with Jenkins, saves it to an ECR repo, and deploys it to Elastic Beanstalk running Docker. This is an enterprise-ready, scalable, and highly-available architecture and CI/CD pattern to build and deploy Jenkins.

Some of the created AWS resources include Elastic Beanstalk Application, Elastic Beanstalk Environment with Docker, and ECR repository to store the Jenkins Docker image.