➜ scw-k8s git:(2-bootstrap-iac) ✗ terraform apply
2021/07/14 10:49:04 [DEBUG] POST https://gitlab.com/api/v4/projects/****/terraform/state/****/lock
Acquiring state lock. This may take a few moments...
2021/07/14 10:49:05 [DEBUG] GET https://gitlab.com/api/v4/projects/*****/terraform/state/****
╷
│ Error: Error in function call
│
│ on .terraform/modules/kapsule/cluster.tf line 27, in resource "scaleway_k8s_cluster" "this":
│ 27: for_each = local.auto_upgrade["enable"] ? list("auto_upgrade") : []
│
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer available;
│ use tolist([ ... ]) syntax to write a literal list.
╵
2021/07/14 10:49:07 [DEBUG] DELETE https://gitlab.com/api/v4/projects/****/terraform/state/****/lock
Releasing state lock. This may take a few moments...
Hello,
An error occurs when I try to apply my configuration with
auto_upgrade
option. It's realted to the call to functionlist
that isn't available anymore.Here my
kapsulte.tf
file:And the output when I run
terrraform apply
: