【发布时间】:2021-01-02 05:02:51
【问题描述】:
请找到我们正在使用的 terraform 脚本的 GitLab 存储库。 enter link description here Run in terraform plan 在用于弹性搜索的 all-in-one.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.
【问题讨论】:
-
代码第 29 行的
path.和module之间可能不应该有空格 -
嗨,Patrick,我们也尝试不使用空格和空格,但仍然出现同样的错误。
-
请不要在代码 sn-ps 中使用图像,因为它非常难以阅读并且没有索引以供搜索。在how to ask 页面中明确提及
标签: elasticsearch kubernetes terraform