当我应用terraform计划时,它显示错误加载配置:解析“位置”时出错2:21:文字未终止
模板文件
provider "aws" {
region = "${var.region}"
}
resource "aws_instance" "modDem" {
ami = "${var.ami`enter code here`i}"
instance_type = "{var.instance}"
tags {
Name = "Demo"
}
}
变量文件
variable "amii" {
default = "ami-22b9a343"
}
variable "instance" {
default = "t2.micro"
}
variable "region" {
default = "us-west-2"
}
模块文件:
module "Tr" {
source = "../modules'
}
模块文件中的source
字段未正确终止。它应该看起来像:模块文件:
module "Tr" {
source = "../modules"
}