Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring EBS volume type for Elasticsearch #3628

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tf-modules/data-persistence/elasticsearch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "aws_elasticsearch_domain" "es" {

ebs_options {
ebs_enabled = true
volume_type = "gp2"
volume_type = var.elasticsearch_config.volume_type
volume_size = var.elasticsearch_config.volume_size
}

Expand Down Expand Up @@ -94,7 +94,7 @@ resource "aws_elasticsearch_domain" "es_vpc" {

ebs_options {
ebs_enabled = true
volume_type = "gp2"
volume_type = var.elasticsearch_config.volume_type
volume_size = var.elasticsearch_config.volume_size
}

Expand Down
2 changes: 2 additions & 0 deletions tf-modules/data-persistence/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ variable "elasticsearch_config" {
instance_count = number
instance_type = string
version = string
volume_type = string
volume_size = number
})
default = {
domain_name = "es"
instance_count = 1
instance_type = "t2.small.elasticsearch"
version = "5.3"
volume_type = "gp2"
volume_size = 10
}
}
Expand Down