Skip to content

Commit 128b732

Browse files
authored
Merge pull request #4 from egarbi/develop
Adds a new variable to control size of EBS volumes
2 parents d9d5590 + 4112ef0 commit 128b732

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ variable "snapshot_start" {
5959
default = 0
6060
}
6161

62+
variable "volume_size" {
63+
default = "35"
64+
}
65+
6266

6367
resource "aws_security_group" "elasticsearch" {
6468
name = "${var.name}"
@@ -115,7 +119,7 @@ resource "aws_elasticsearch_domain" "es" {
115119
ebs_options {
116120
ebs_enabled = true
117121
volume_type = "gp2"
118-
volume_size = "35"
122+
volume_size = "${var.volume_size}"
119123
}
120124

121125
snapshot_options {

0 commit comments

Comments
 (0)