Giter Site home page Giter Site logo

elasticsearch-deployment's Introduction

Single Node Elasticsearch-Deployment

This Deployment creates a single node elasticsearch cluster with TLS encryption and secure communication enabled. To generate the default passwords for the native elastic stack users one needs to run the elasticsearch utility present in the /usr/share/elasticsearch/bin directory.

   Command to generate passwords - ./elasticsearch-setup-passwords auto|interactive
  • Auto mode will generate random passwords for the users
  • Interactive mode will let user set custom passwords

Node will be accessible through AWS Systems Manager. There is no need to create a bastion/Jump host to login into the server.

Project Directory Structure

   Single-Node ES Cluster
          |
          |__Packer
          |     |
          |     |__files
          |     |     |__elasticsearch.repo
          |     |__scripts     
          |     |     |__elasticsetup.sh
          |     |     |__javasetup.sh
          |     |__amazonlinux2_ami.json
          |
          |__Terraform
                |
                |__main.tf
                |__provider.tf
                |__variables.tf
                |__terraform.tfvars

Tools Used

  1. Packer - To create the pre-baked AMI containing elasticsearch installation and configs.

    Base Image - Amazon Linux2

    AWS Region - us-east-1

    Jdk - Amazon Correto 11

    Elasticsearch Version - 7.10

    Command to generate AMI - packer build amazonlinux2_ami.json
    
  2. Terraform - To provision the system in AWS.

    Steps to provision the infrastucture on AWS

    1.  Go to terraform directory
    2.  Initialize the terraform working directory
            terraform init 
    3.  Create a terraform execution plan
            terraform plan -out tfplan
    4.  Apply the changes to create the desired state 
            terraform apply tfplan
    

elasticsearch-deployment's People

Contributors

gaurav2101 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.