This projected aimed to practice Terraform and Ansible in AWS. We would be creating Jenkins servers with necessary networking.
- Run terraform_install.sh to install terraform
- Run install-ansible.sh to install Ansible
- Update S3 bucket and AWS Profile in backend.tf
- Update profile and DNS in variabled.tf
- Update public_key location for both master_keypair and worker_keypair inside instances.tf
- Run Terraform commands
- cd codo/
- terraform init
- terroform plan
- terraform apply
- change to windows drive using cd /mnt/c or cd /mnt/d
- Export cfg file location eg. export ANSIBLE_CONFIG=/mnt/d/Tech/AWSLearning/TerraformAnsibleWithAWS/code/ansible.cfg