maxkrivich / aws-terraform-ansible-docker-elk-python

Example of usage ELK-stack deployed to AWS cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ELK-stack + docker-compose + terraform + ansible + AWS example

This is a small example of ELK stack usage deployed to AWS cloud. For the purposes, I have used two t2.medium AWS EC2 instances, running linux installed with Docker and docker-compose. Instance 1st is running a python sanic web app + filebeat and 2nd instance is running ELK stack (Elasticsearch, Logstash, Kibana). The infrastructure provisioned + configured with terraform and ansible.

image image

Description

Each folder contains README.md file how to launch the whole environment.

Pre-install

$ pip install boto==2.49.0
$ ansible-galaxy install -r infra/ansible/requirements.yml

Make usage

$ make help
help                           This help
terraform-init                 Init terraform project
terraform-plan                 Show terraform plan to apply
terraform-apply                Apply changes on infrastructure
ansible-setup                  Setup EC2 instances
elk-up                         Launch ELK stack
elk-down                       Stop ELK stack
echo-up                        Launch echo service + filebeat
echo-down                      Stop echo service + filebeat
clean-pyc                      Remove complied files

Links

About

Example of usage ELK-stack deployed to AWS cloud

License:MIT License


Languages

Language:Python 93.1%Language:HCL 4.3%Language:Makefile 1.5%Language:Dockerfile 0.9%Language:Shell 0.1%