You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Unsupported attribute
on .terraform/modules/gke/terraform-google-modules-terraform-google-kubernetes-engine-7be707a/modules/beta-private-cluster-update-variant/cluster.tf line 312, in resource "google_container_node_pool" "pools":
312: name = random_id.name.*.hex[each.key]
This object does not have an attribute named "hex".
Error: Invalid index
on .terraform/modules/gke/terraform-google-modules-terraform-google-kubernetes-engine-7be707a/modules/beta-private-cluster-update-variant/cluster.tf line 312, in resource "google_container_node_pool" "pools":
312: name = random_id.name.*.hex[each.key]
|----------------
| each.key is "default-node-pool"
| random_id.name is object with 1 attribute "default-node-pool"
The given key does not identify an element in this collection value: a number
is required.
The text was updated successfully, but these errors were encountered:
skinlayers
changed the title
safer-cluster-update-variant errors on 'random_id.name.*.hex'
safer-cluster-update-variant errors on 'random_id.name.*.hex' from beta-private-cluster-update-variant
Jan 31, 2020
skinlayers
changed the title
safer-cluster-update-variant errors on 'random_id.name.*.hex' from beta-private-cluster-update-variant
update-variants errors on 'random_id.name.*.hex' in node_pool
Feb 1, 2020
skinlayers
changed the title
update-variants errors on 'random_id.name.*.hex' in node_pool
update-variants error on 'random_id.name.*.hex' in node_pool
Feb 1, 2020
terraform v0.12.20
From what I can tell, the splat doesn't work for accessing a map.
See: hashicorp/terraform#22476
Offending line:
https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/master/autogen/main/cluster.tf.tmpl#L341
Snippet:
Error message:
The text was updated successfully, but these errors were encountered: