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

deal with EBS options properly #2

Open
hakamadare opened this issue May 30, 2017 · 4 comments
Open

deal with EBS options properly #2

hakamadare opened this issue May 30, 2017 · 4 comments
Assignees
Labels

Comments

@hakamadare
Copy link
Contributor

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 hakamadare added the bug label May 30, 2017
@hakamadare hakamadare self-assigned this May 30, 2017
@ghost
Copy link

ghost commented Jun 23, 2017

@hakamadare Could you describe this bug more precisely?

@mikhail-bardash
Copy link

mikhail-bardash commented Apr 10, 2018

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.

@Tiny-wlx
Copy link

+1

1 similar comment
@okleinschmidt
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants