https://github.com/erankitcs/terraformansiblewithaws
This projected aimed to practice Terraform and Ansible in AWS. We would be creating Jenkins servers with necessary networking.
https://github.com/erankitcs/terraformansiblewithaws
ansible aws awsdevops hcl jenkins playbook-ansible practice-terraform terraform terraform-aws
Last synced: about 2 months ago
JSON representation
This projected aimed to practice Terraform and Ansible in AWS. We would be creating Jenkins servers with necessary networking.
- Host: GitHub
- URL: https://github.com/erankitcs/terraformansiblewithaws
- Owner: erankitcs
- License: mit
- Created: 2020-09-11T10:27:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T10:58:04.000Z (about 5 years ago)
- Last Synced: 2025-03-13T21:44:07.415Z (7 months ago)
- Topics: ansible, aws, awsdevops, hcl, jenkins, playbook-ansible, practice-terraform, terraform, terraform-aws
- Language: HCL
- Homepage:
- Size: 93.4 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Using Terraform and Ansible with AWS
This projected aimed to practice Terraform and Ansible in AWS. We would be creating Jenkins servers with necessary networking.## Steps to install
1. Run terraform_install.sh to install terraform
2. Run install-ansible.sh to install Ansible
3. Update S3 bucket and AWS Profile in backend.tf
4. Update profile and DNS in variabled.tf
5. Update public_key location for both master_keypair and worker_keypair inside instances.tf
6. Run Terraform commands
- cd codo/
- terraform init
- terroform plan
- terraform apply### To work with Ubuntu on WSL (Windows 10 with Windows Subsystem for Linux)
- 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## Architecture

Thanks to A Cloud Guru for diagram.
## Demo
