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
terraform destroy or change the number of items in var.subnets
terraform apply again. This time it will fail
Error
Error will be something like this:
Error: Error in function call
on .terraform/modules/vpc/terraform-google-modules-terraform-google-network-7810346/main.tf line 57, in data "google_compute_subnetwork" "created_subnets":
57: region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
|----------------
| count.index is 0
| google_compute_subnetwork.subnetwork is empty tuple
Call to function "element" failed: cannot use element function with an empty
list.
Steps to reproduce
terraform apply
terraform destroy
or change the number of items invar.subnets
terraform apply
again. This time it will failError
Error will be something like this:
Related issues
#99 Cannot create VPC with only one subnet
The text was updated successfully, but these errors were encountered: