“的Terraform不支持的块类型错误”;aws“云形成”堆栈;
我正在设置“部署到AWS ECR/ECS(链接下方)”,完成1-4。 这是我的密码“的Terraform不支持的块类型错误”;aws“云形成”堆栈;,terraform,circleci,Terraform,Circleci,我正在设置“部署到AWS ECR/ECS(链接下方)”,完成1-4。 这是我的密码 resource "aws_cloudformation_stack" "vpc" { name = "${local.aws_vpc_stack_name}" template_body = "${file("cloudformation-templates/public-vpc.yml")}" capabilities = ["CAPABILITY_NAMED_IAM"] parameter
resource "aws_cloudformation_stack" "vpc" {
name = "${local.aws_vpc_stack_name}"
template_body = "${file("cloudformation-templates/public-vpc.yml")}"
capabilities = ["CAPABILITY_NAMED_IAM"]
parameters {
ClusterName = "${local.aws_ecs_cluster_name}"
ExecutionRoleName = "${local.aws_ecs_execution_role_name}"
}
}
我应该怎样做才能成功地“地形规划”?
谢谢,而不是
parameters {
ClusterName = "${local.aws_ecs_cluster_name}"
ExecutionRoleName = "${local.aws_ecs_execution_role_name}"
}
试一试
第一个被解释为块,第二个被解释为参数。因此出现了错误
parameters {
ClusterName = "${local.aws_ecs_cluster_name}"
ExecutionRoleName = "${local.aws_ecs_execution_role_name}"
}
parameters = {
ClusterName = "${local.aws_ecs_cluster_name}"
ExecutionRoleName = "${local.aws_ecs_execution_role_name}"
}