- Terraform
- Ansible
- AWS Console account
- IAM Admin User
- SSH Key
- Edit
~/1 Terraform/vars.tf
file adding the values for
- AWS_ACCESS_KEY
- AWS_SECRET_KEY
- PATH_TO_PRIVATE_KEY
- PATH_TO_PUBLIC_KEY
- Using a terminal
- Located into
~/1 Terraform/
folder, run:
terraform init
terraform apply
- Once the infraestructure is ready, edit the
~/2 Ansible/inventory.txt
file, adding the IP adress of the EC2 instances just created and adding the path to your ssh-key. - Located into
~/2 Ansible/
folder, run:
ansible-playbook playbook.yml -i inventory.txt
- The deploy is ready, open in a browser the load balancer url 😊