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

Does not work with recent versions of Terraform (the "list" function was deprecated in Terraform v0.12 and is no longer available) #7

Open
cpauliat opened this issue Feb 3, 2022 · 1 comment

Comments

@cpauliat
Copy link

cpauliat commented Feb 3, 2022

➜ oci-nfs git:(master) ✗ terraform plan

│ Error: Error in function call

│ on bastion.tf line 206, in resource "oci_core_instance" "storage_server":
│ 206: user_data = base64encode(join("\n", list(
│ 207: "#!/usr/bin/env bash",
│ 208: "set -x",
│ 209: )))

│ 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.


│ Error: Error in function call

│ on bastion.tf line 276, in resource "oci_core_instance" "client_node":
│ 276: user_data = base64encode(join("\n", list(
│ 277: "#!/usr/bin/env bash",
│ 278: "set -x",
│ 279: )))

│ 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.


│ Error: Error in function call

│ on bastion.tf line 334, in resource "oci_core_instance" "quorum_server":
│ 334: user_data = base64encode(join("\n", list(
│ 335: "#!/usr/bin/env bash",
│ 336: "set -x",
│ 337: )))

│ 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.


│ Error: Error in function call

│ on grafana.tf line 36, in resource "oci_core_instance" "monitoring_server":
│ 36: user_data = base64encode(join("\n", list(
│ 37: "#!/usr/bin/env bash",
│ 38: "set -x",
│ 39: )))

│ 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.

@cpauliat
Copy link
Author

cpauliat commented Feb 3, 2022

fix: replace list(xxx) by tolist([xxx])

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

No branches or pull requests

1 participant