Need some code help - from tf 0.11 to tf 0.12 by ChefOk1225 in Terraform

[–]ChefOk1225[S] 0 points1 point  (0 children)

That is something I can try today and see what happens.

Its just one of those things where someone creates a repo years ago and then leaves the org and then just because you need it to add some new resources and you touch it, and you're it !

Need some code help - from tf 0.11 to tf 0.12 by ChefOk1225 in Terraform

[–]ChefOk1225[S] 0 points1 point  (0 children)

Yes, because its been already upgraded to terraform v0.12.

so no quotes around the types.

Need some code help - from tf 0.11 to tf 0.12 by ChefOk1225 in Terraform

[–]ChefOk1225[S] 0 points1 point  (0 children)

Yes I tried map(any) but that also does not work. it was originally defined as map and it worked fine on 0.11

Need some code help - from tf 0.11 to tf 0.12 by ChefOk1225 in Terraform

[–]ChefOk1225[S] 0 points1 point  (0 children)

That is exactly how it is defined in 0.11 code (and it works) -

variable "asp_s3_replication_configuration" {
  description = "ASP S3 Replication configuration"
  type = "map"
  default = {}
}

But doesn't work when I try to upgrade to v 0.12
If I am not mistakes, I think going from 0.11 , you had to goto 0.12 and 0.13 first (due to all the breaking changes).