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 all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ the CloudWatch logs for your async operations (e.g. `PREFIX-AsyncOperationEcsLog
- `tf-modules/monitoring` module now deploys Glue table for querying dead-letter-archive messages.
- **CUMULUS-3616**
- Added user guide on querying dead-letter-archive messages using AWS Athena.
- **CUMULUS-3700**
- Added option to configure EBS volume type for Elasticsearch; default remains `gp2`.

### Changed
- **CUMULUS-3570**
Expand Down
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