-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terraform apply not deploying all the resources specified #5249
Comments
@edwardmedia can you help ? |
@gowrisankar22 my guess is that, if this is your exact config, you're running into an issue because the node_pool has no dependency on the cluster and thus Terraform may try to create it at the same time as the cluster. This will fail because the cluster doesn't exist yet, but on reapply works because the cluster was created. You need to either interpolate the cluster name into the node pool config or add an explicit depends_on. i.e.
or
To confirm, what is the error you are getting initially? |
hi @emilymye I dint get any error but after adding depends_on field it worked like a charm |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hello Colleagues,
I am trying to deploy the GKE cluster with a custom node pool. While deploying it deploys the cluster only for the first time and it fails. During the second attempt, it deploys the node pool and it is getting succeeding. It should deploy all the resources ideally.
Please find the terraform below
The text was updated successfully, but these errors were encountered: