terraform-community-modules / tf_aws_elasticsearch

[DEPRECATED] Use https://github.com/terraform-aws-modules/terraform-aws-opensearch
MIT License
79 stars 97 forks source link

deal with EBS options properly #2

Open hakamadare opened 7 years ago

hakamadare commented 7 years ago

right now if ebs_volume_size is set to 0, then ebs_enabled is set to false, and then there's an error message about how we can't pass any EBS options.

ghost commented 7 years ago

@hakamadare Could you describe this bug more precisely?

mikhail-bardash commented 6 years ago

If ebs_enabled is set to false, volume_sizeshould be ignored, but it's still failing(see error below) even if you set volume_size = 0.

    ebs_options {
    ebs_enabled = "${var.ebs_volume_size > 0 ? true : false}"
    volume_size = "${var.ebs_volume_size}"
    volume_type = "${var.ebs_volume_type}"
  }

Error: Error applying plan:

1 error(s) occurred:

Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.

Tiny-wlx commented 6 years ago

+1

okleinschmidt commented 6 years ago

+1