请找到我们正在使用的terraform脚本的GitLab存储库。
enter link description here
在Terraform计划中运行会在 Elasticsearch 的多合一.YAML文件中给出以下错误。
Error: Error in function call
on kubernetes.tf line 49, in locals:
49: resource_list = yamldecode(file("${path. module}/all-in-one.yaml")).items
|----------------
| path.module is "."
Call to function `"yamldecode"` failed: on line 458, column 1: unexpected extra
content after value.
enter image description here 最佳答案
如the fine manual中所述:
并且可以轻松重现您的错误消息:
content = yamldecode("---\nhello: world\n---\ntoo: bad\n")
on main.tf line 14, in resource "local_file" "example":
14: content = yamldecode("---\nhello: world\n---\ntoo: bad\n")
Call to function "yamldecode" failed: on line 2, column 1: unexpected extra
content after value.
关于elasticsearch - terraform计划给出错误:函数调用(函数yamldecode),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/63901836/