我想创建一个具有单个值的变量,一个元素列表。所以我做了:
variable "cipher_suites" = {
type = list(string)
default = [
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
]
}
还有这个
variable "cipher_suites" {
type = "list"
default = [
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
]
}
但后来我收到很多关于我的声明和初始化的错误:
This character is not used
2019-10-09T06:41:12.2239556Z within the language.
我在这里做错了什么?