I have just run Terraform upgrade. My code was updated but now it shows some errors. The first was:
variable "s3_bucket_name" {
type = list(string)
default = [
"some_bucket_name",
"other_bucket_name",
...
]
}
It doesn't like list(string)
. I went back to square one and redid the entire Getting Started tutorial. It said that I could either explicitly state type = list
or I could implicitly state it by leaving out type and just using the [square brackets].
I saw here: unknown token IDENT list error for IP address variable that I could use "list"
(quotes) but I can't find any information on list(string)
.
So I commented out my list(string)
which moved the error along to the next part.
provider "aws" {
region = var.aws_region
}
The tutorial indicates that this is the correct way to create a region tag (there's actually part of the tutorial with that exact code).
Can anyone help me to understand what Unknown token IDENT
means as it's throughout my code but it's not helping me to understand what I should do to fix it.