tf_aws_elasticsearch icon indicating copy to clipboard operation
tf_aws_elasticsearch copied to clipboard

deal with EBS options properly

Open hakamadare opened this issue 7 years ago • 4 comments

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.

hakamadare avatar May 30 '17 19:05 hakamadare

@hakamadare Could you describe this bug more precisely?

ghost avatar Jun 23 '17 22:06 ghost

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:

  • module.redis.aws_elasticsearch_domain.es: 1 error(s) occurred:

  • aws_elasticsearch_domain.es: ValidationException: EBSEnabled must be set to true to use any of the EBS options. status code: 400, request id: 598e63f6-3cd3-11e8-a443-2f0600b15d39

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.

mikhail-bardash avatar Apr 10 '18 15:04 mikhail-bardash

+1

Tiny-wlx avatar May 14 '18 01:05 Tiny-wlx

+1

okleinschmidt avatar Jun 19 '18 12:06 okleinschmidt