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: Invalid count argument
│
│ on .terraform/modules/k8s.oke/modules/iam/group-cluster.tf line 22, in resource "oci_identity_dynamic_group" "cluster":
│ 22: count = var.create_iam_resources && var.create_iam_kms_policy ? 1 : 0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be
│ created. To work around this, use the -target argument to first apply only the resources that the count depends on.
╵
╷
│ Error: Invalid count argument
│
│ on .terraform/modules/k8s.oke/modules/network/subnets.tf line 103, in resource "null_resource" "validate_subnets":
│ 103: count = anytrue([for k, v in local.subnet_cidrs_new : contains(["netnum", "newbits", "cidr"], v.type)
│ 104: if lookup(v, "create", "auto") != "never"
│ 105: ]) ? 1 : 0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be
│ created. To work around this, use the -target argument to first apply only the resources that the count depends on.
╵
╷
│ Error: Invalid for_each argument
│
│ on .terraform/modules/k8s.oke/modules/network/subnets.tf line 148, in resource "oci_core_security_list" "oke":
│ 148: for_each = {
│ 149: for k, v in local.subnets_to_create : k => v
│ 150: if tobool(lookup(v, "create_seclist", false))
│ 151: }
│ ├────────────────
│ │ local.subnets_to_create will be known only after apply
│
│ The "for_each" map includes keys derived from resource attributes that cannot be determined until apply, and so Terraform cannot determine the full
│ set of keys that will identify the instances of this resource.
│
│ When working with unknown values in for_each, it's better to define the map keys statically in your configuration and place apply-time results only
│ in the map values.
│
│ Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on, and then apply a
│ second time to fully converge.
Panic Output
Expected Behavior
Terraform builds the plan successfully
Actual Behavior
Terraform exits during planning with an error
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version and Provider Version
terraform -v: Terraform v1.8.1 on darwin_amd64
oracle/oci: ~> 5.32.0
Affected Resource(s)
oci_identity_dynamic_group.cluster
null_resource.validate_subnets
oci_core_security_list.oke
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Terraform builds the plan successfully
Actual Behavior
Terraform exits during planning with an error
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: