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

Error in function call #123

Closed
AgustinNormand opened this issue Jul 23, 2021 · 3 comments · Fixed by #124
Closed

Error in function call #123

AgustinNormand opened this issue Jul 23, 2021 · 3 comments · Fixed by #124

Comments

@AgustinNormand
Copy link

Hi,

Im trying to use this module and I'm getting this error:

│ Error: Error in function call
│ 
│   on .terraform/modules/gcs_buckets/main.tf line 18, in locals:
│   18:   prefix = var.prefix == "" ? "" : join("-", list(var.prefix, lower(var.location), ""))
│     ├────────────────
│     │ var.location is "EU"
│     │ var.prefix is "my-unique-prefix"
│ 
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax
│ to write a literal list.

Im doing the same thats in this tutorial.

Is this a bug? Can you help me?

Thanks!

@bharathkkb
Copy link
Member

Hi @AgustinNormand

We fixed this #107 so it should work with version = "~> 2.0"

@AgustinNormand
Copy link
Author

Thanks! I didn't know I wasn't using the latest version. Sorry for asking.

@bharathkkb
Copy link
Member

no worries at all, our readmes were out of date.

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

Successfully merging a pull request may close this issue.

2 participants