CI/CD with AWS+Docker+Ansible+Jenkins

DevSecOps
8 min readJun 21, 2024

Step by step Practical article to Automate Continuous Integration/Delivery process with Ansible, Jenkins, GIT, Docker on AWS.

Hello. Welcome to our journey. Today we will create fully automated CI/CD with Docker, Ansible, Jenkins on AWS.

1. Create AWS EC2 Instance (Amazon Linux)

Free Tier is enough, but make sure to add at least 16GB of memory.

You can now connect to it directly from the web ui page, so go to connect > connect.

It will redirect you to the new window.

  1. Install Java

Install the headless Amazon Corretto 11

sudo yum install java-11-amazon-corretto-headless

Install the headful Amazon Corretto 11

sudo yum install java-11-amazon-corretto

Install the JDK for Amazon Corretto 11 (Amazon Linux only)

sudo yum install java-11-amazon-corretto-devel

Install the JMods for Amazon Corretto 11 (Amazon Linux only)

sudo yum install java-11-amazon-corretto-jmods

--

--