A jenkins server hosted on amazon ec2
Infrastructure As Code: Terraform
Configuring Tool: Ansible
Cloud: AWS
Container runtime: Docker
Clone the project
git clone https://link-to-project
Go to the project directory
cd my-project
configure aws cli
# Change my_ip value to your ip address in secrets.tfvar
cd terraform
terraform init
terraform apply -var-file="secrets.tfvar"
cd ansible
# change the inventory with ec2 ip address
ansible -i inventory playbook.yaml