elasticsearch-domain

dod-iac/elasticsearch-domain/aws

Terraform Module HCL AWS

Creates an Amazon Elasticsearch Service domain with secure defaults.

Install
module "elasticsearch-domain" {
source = "dod-iac/elasticsearch-domain/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-dod-iac-elasticsearch-domain-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an Amazon Elasticsearch Service domain with secure defaults. This module always requires node-to-node encryption, encryption at rest, HTTPS endpoints, and use of a VPC. ``hcl module "elasticsearch_domain" { source = "dod-iac/elasticsearch-domain/aws" domain_name = format("app-%s-%s", var.application, var.environment) kms_key_id = var.kms_key_id subnet_ids = slice(module.vpc.private_subnets, 0, 1) security_group_ids = [aws_security_group.elasticsearch.id] tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` The IAM service-linked role for Amazon Elasticsearch Service is required before you can create a domain. If the role does not exist, then you can create the role with the following resource. `hcl resource "aws_iam_service_linke

Inputs (13)
NameTypeDescriptionDefault
domain_namestringName of the domain. required
security_group_idslist(string)List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoin required
volume_typestringThe type of EBS volumes attached to data nodes."gp2"
access_policiesstring IAM policy document specifying the access policies for the domain.""
automated_snapshot_start_hourstringHour during which the service takes an automated daily snapshot of the indices i23
instance_countnumberNumber of instances in the cluster.1
kms_key_idstringThe KMS key id to encrypt the Elasticsearch domain with. If not specified then i""
instance_typestringInstance type of data nodes in the cluster."r5.large.elasticsearch"
tls_security_policystringThe name of the TLS security policy that needs to be applied to the HTTPS endpoi"Policy-Min-TLS-1-2-2019-07"
elasticsearch_versionstringThe version of Elasticsearch to deploy."7.7"
subnet_idslist(string)List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.[]
tagsmap(string)Tags applied to the KMS key.{}
volume_sizenumberThe size of EBS volumes attached to data nodes (in GB). Required if ebs_enabled 20
Resources (1)
aws_elasticsearch_domain
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars1
Forks1
Total downloads6.1k
Inputs13
Resources1
LicenseMIT
Namespacedod-iac
Updated