Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconelasticsearch-docker
file-type-iconelasticsearch-only-cluster
file-type-iconelk-amis
file-type-iconall-in-one
file-type-iconapp-server
file-type-iconcollectd
file-type-iconelastalert
file-type-iconelasticsearch
file-type-iconfilebeat
file-type-iconkibana
file-type-iconlogstash
file-type-iconREADME.md
file-type-iconelk-multi-cluster
file-type-iconelk-single-cluster
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE.md
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconelasticsearch-docker
file-type-iconelasticsearch-only-cluster
file-type-iconelk-amis
file-type-iconall-in-one
file-type-iconapp-server
file-type-iconcollectd
file-type-iconelastalert
file-type-iconelasticsearch
file-type-iconfilebeat
file-type-iconkibana
file-type-iconlogstash
file-type-iconREADME.md
file-type-iconelk-multi-cluster
file-type-iconelk-single-cluster
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE.md
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...
Elasticsearch (self-hosted)

Elasticsearch (self-hosted)

Deploy a self-hosted Elasticsearch cluster. Supports automatic bootstrap, zero-downtime rolling deployment, auto healing, backup, and recovery.

Code Preview

Preview the Code

mobile file icon

README.md

down

ELK Example AMIs

This folder contains example Packer templates for building each of our ELK AMIs.

How we organized the code

Each folder in this directory represents an example packer template for building a particular ELK component (eg: Kibana)

  1. Elasticsearch
  2. Logstash
  3. Kibana
  4. Application Server

Building AMIs configured for SSL

Each of the examples above define a use_ssl user variable that when set to true will build an AMI of a particular ELK component wired to enable SSL encryption.

NOTE - Each example will look for all SSL artifacts (CA, certificate, certificate key) in /examples/elk-amis/ssl. If that folder does not exist, then you will get an error when building the packer template.

NOTE - Logstash requires the certificate key to be encoded in PCS8 format while the other ELK applications require PCS12 format.

Tools to aid with SSL certificate creation

We recommend using the generate-key-stores script in terraform-aws-kafka. This script has been expanded to conveniently be able to generate all of the SSL artifacts required for launching an ELK cluster with end-to-end SSL encryption enabled.

For a Go code example of how we use the generate-key-stores script, please see test_helpers_keystore.go

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?