Setup and install Ansible on the EC2 instance, and allow this instance to create AWS resources.
> sudo yum install python-pip
> python --version
Python 2.7.14
> pip --version
pip 9.0.3 from /usr/lib/python2.7/site-packages (python 2.7)
> pip install ansible boto3 boto --user
...
> which ansible
~/.local/bin/ansible
private key for Logstash .ssh/logstah.pem
private key for Elasticsearch .ssh/elasticsearch.pem
vpc_id
for security groupsubnets
for application Load balancer
Install java 1.8 for Logstash and Elasticsearch
tasks to setup AWS infra and Logstash servers
- Security Group for EC2 instance
- EC2 instances
- Target Group
- Application LoadBalancer
Install Logstash and configuraiton
tasks to setup AWS infra for Elasticsearch servers
- Security Group for EC2 instances
- EC2 instances
Official Elasticsearch playbook