As a DevOps engineer, you’ve been tasked to assist a startup company in setting up its IT infrastructure on the AWS cloud using Terraform, Jenkins, and Ansible. The infrastructure includes 4 web servers and 2 databases. The specific tasks include:
a). Write a Terraform Script that provisions the servers and databases in a highly available environment.
b). Push the Terraform script to GitHub for version control.
c). Create a Jenkins job that automatically detects changes in the terraform script on GitHub and deploys the changes.
d). Using Ansible, configure the web servers and database.
Tools / Technologies: Terraform, GitHub, Jenkins, Ansible