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

lifecycle prevent destroy can't be variablized? #3640

Closed
sherabi opened this issue Oct 26, 2015 · 3 comments
Closed

lifecycle prevent destroy can't be variablized? #3640

sherabi opened this issue Oct 26, 2015 · 3 comments

Comments

@sherabi
Copy link

sherabi commented Oct 26, 2015

Hi,
I have a simple problem. I have created a module for my WAF ELB and in that module I try to pass a variable that will set the prevent destroy lifecycle value to either true or false. However I get the following error. I tried passing true with an without the quotes.
What am I possible doing wrong or it is even possible to set the boolean as a variable?
Thanks in advance!

Error loading Terraform: Error downloading modules: module QAWAFELB: Error loading .terraform/modules/3543e816b9ffba31f9c1cf593d8c72cd/main.tf: Error parsing lifecycle for aws_elb[WAFELB]: 1 error(s) decoding:

* cannot parse 'prevent_destroy' as bool: strconv.ParseBool: parsing "${var.waf_elb_lifecycle_prevent_destroy}": invalid syntax
@thegedge
Copy link
Contributor

#3116

@catsby
Copy link
Contributor

catsby commented Oct 27, 2015

Hey @sherabi – thanks for opening this. Looks like we're tracking it over in #3116 (thanks @thegedge) so I'm going to close this.

Thanks again!

@catsby catsby closed this as completed Oct 27, 2015
@ghost
Copy link

ghost commented Apr 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants