我正在尝试在我的terraform脚本的provisioner "remote-exec"块中使用多行字符串。然而,无论何时使用文档和各种示例中概述的EOT语法,我都会遇到一个错误,指出存在:invalid characters in heredoc anchor。 这里是一个收到此错误的简单provisioner "remote-exec"一个例子(当分别尝试这两种类型的EOT收到此错误): p
我想创建2个VPC安全组。 一个用于VPC的Bastion主机,另一个用于Private子网。 # BASTION #
resource "aws_security_group" "VPC-BastionSG" {
name = "VPC-BastionSG"
description = "The sec group for the Bastion instance"
这是我在运行terraform plan时得到的结果,它以前用于以前的版本,所以基本上concat是返回列表而不是字符串。 Errors:
* At column 3, line 1: lookup: argument 2 should be type string, got type list in:
${lookup(var.az, concat("zone", count.index
我的问题是类似这样的混帐枢纽职位: https://github.com/hashicorp/terraform/issues/745 它也关系到我的另一个堆叠交换后: Terraform stalls while trying to get IP addresses of multiple instances? 我试图引导多台服务器和我需要在需要所有其他实例的IP地址的实例上运行几条命令。但是我