我正在尝试在字符串中添加变量
# variables.tf file
terraform {
backend "s3" {
bucket = terraform-20200527"
workspace_key_prefix = "customer"
key = "env/${env_name}/terraform.tfstate"
region = "us-east-1"
profile = "default"
}
}
得到错误:
Error: Variables not allowed
on variables.tf line 7, in terraform:
7: key = "env/${env_name}/terraform.tfstate"
Variables may not be used here.