Giter Club home page Giter Club logo

terraform-module-aws-storage-elasticsearch-encrypted's Introduction

Terraform AWS module for ElasticSearch encrypted

Generic repository for a terraform module for AWS ElasticSearch encrypted database using KMS key

Image of Terraform

Table of content

Intro

Module that creates:

  • AWS security group and egress rule for a given parameterized CIDR
  • AWS Elasticsearch policy
  • AWS Elasticsearch domain inside a given VPC id

Optionally encrypts at rest data in Elasticsearch using an externally created KMS key. Please inject those with variables:

  • encrypt_at_rest_kms_key_id = "kms-key-id"
  • encrypt_at_rest_enabled = true

Usage

Example usage:

module "elasticsearch" {

  source                                  = "github.com/diogoaurelio/terraform-module-aws-storage-elasticsearch-encrypted"
  version                                 = "v0.0.1"

  domain_name                             = "search"
  vpc_id                                  = "vpc-123"
  aws_region                              = "eu-west-1"
  environment                             = "dev"
  project                                 = "relevance"
  instance_count                          = 1
  instance_type                           = "t2.medium.elasticsearch"
  ebs_volume_size                         = 20

  # Note: You must specify exactly one subnet (with one node at least)
  subnet_ids                              = ["subnet-123"]
  aws_elasticsearch_domain_policy_enabled = true
  iam_actions                             = ["es:*"]
  iam_role_arns                           = ["*"]
}

Release log

Whenever you bump this module's version, please add a summary description of the changes performed, so that collaboration across developers becomes easier.

  • version v0.0.1 - first module release

Module versioning & git

To update this module please follow the following proceedure:

  1. make your changes following the normal git workflow
  2. after merging the your changes to master, comes the most important part, namely versioning using tags:
git tag v0.0.2
  1. push the tag to the remote git repository:
git push origin master tag v0.0.2

Local terraform setup

brew install terraform
  • In order to automatic format terraform code (and have it cleaner), we use pre-commit hook. To install pre-commit.
  • Run pre-commit install to setup locally hook for terraform code cleanup.
pre-commit install

Authors/Contributors

See the list of contributors who participated in this project.

terraform-module-aws-storage-elasticsearch-encrypted's People

Contributors

daurelio-deloitte avatar

Watchers

James Cloos avatar daurelio avatar  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.