This code for infrastructure (formerly IaC
) will let you up and run your infra which will consist of 6 AWS
VM's, 3 Front and 3 Backend servers, and configure a Log Collecting
system based on Elasticsearch
and Kibana
These instructions will get you a copy of the project up and running on your AWS for testing and staging purposes.
$ git clone https://github.com/Hakob/infraascode.git
$ cd infraascode/terraform
$ terraform init
$ cd .. && chmod o+x startup.sh
$ ./startup.sh [plan|apply|destroy]
And then after this you can run ansible's playbooks
$ cd ansible/
$ ansible-playbook -i frontend.ini site.yml
$ ansible-playbook -i backend.ini site.yml
Before make things done you need to install the following software on your host machine from where you will run this code
- ssh-keygen (required) - This SSH client tool required for generating key-pairs for connecting to remote machines
- Terraform (required) - Infrastructure building tool
- Ansible (required) - Used to generate RSS Feeds
- AWS CLI (required) - IT automation tool
- jq (optional) - JSON query is for parsing tf's output as needed
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Hakob Arakelyan - Infra as Code - Hakob
This project is licensed under the MIT License - see the LICENSE.md file for details