Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Invalid index error when creating a private cluster
As google_container_cluster.primary.private_cluster_config may be empty, we check its length before trying to access it. When creating a new private cluster, a "Invalid index" error was showing up during the planning. By checking for variable length before trying to access it the plan (and apply) works as expected. Issue: [terraform-google-modules#419] Co-authored-by: Morgante Pell <morgantep@google.com>
- Loading branch information