在Terraform中使用文本字符串结尾EOT添加长内容会引发错误

问题描述

我想使用本地提供程序使用terraform将内容添加到文件中。这是我正在使用的示例脚本

terraform {
    required_version = "~>0.13"
    required_providers {
        local = "~>1.4"
    }
}

resource "local_file" "literature" {
 filename = "art_of_war.txt"
 content = <<EOT 
        Hello 
        world 
 EOT
}

我遇到以下错误Expected the start of an expression,but found an invalid expression token.。请指出可能是错误的地方。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)