Provision EC2 instance using Terraform and install software and deploy app using Ansible
Create an EC2 instance
Create a Security Group and whitelist the port 22 & 8080
Fetch the Public IP
Run Ansible Playbook
- Install Java, Install Tomcat Web Server
- Configure Tomcat
- Deploy Application