Skip to content

A Production ready ECS cluster of elasticsearch 1.7, Use docker on local and use terraform module to deploy on ECS

Notifications You must be signed in to change notification settings

tkant/elasticsearch-terraform-ecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch-Terraform-ECS-EFS

A Production ready ECS cluster of elasticsearch 1.7, Use docker on local and use terraform module to deploy on ECS

For local development have a look at this example docker-compose.yml config:

elasticsearch:
  build: ./elasticsearch/
  mem_limit: 512m
  ports:
    - "9200:9200"
    - "9300:9300"
  volumes:
    - ./elasticsearch/es_data:/usr/share/elasticsearch/data

For deployment on AWS, I had included terraform code to create:

  1. EFS: Used as a persistent storage for our ElasticSearch Cluster
  2. ECS: Cluster and Task definition
  3. ELB: Internal ELB use with private subnet
  4. SG
  5. IAM Role

Change terraform variables before going ahead

Look terraform/es/variables.tf

Change name, image_elasticsearch, vpc_id, etc as per your need. The image name provided is being used by me which is hosted on ECR.

TODO

Add more description

Author

Tushar Kant [email protected]

About

A Production ready ECS cluster of elasticsearch 1.7, Use docker on local and use terraform module to deploy on ECS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published