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
{{ message }}
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
Hello @prahaladramji, thank you for your question. For the moment, the operation of Terraform does not allow to do what you wish to do ...
Are you trying to make terraform rm state <resource> and see the plan after that ?
Warning this action delete the node pool in the state. Don't do this in production !
so the next time if the first definition is removed the newly defined nodepool shift's up in the array index and now terraform try's to make it google_container_node_pool.pools[0]
It's more a terrform problem, on how it handles lists of resources.
For now i'm using name_prefix instead of name with lifecycle block so it first creates an operational nodepool.
eg. initial state.
later in the lifecycle, if we wanted to remove the primary-node-pool.
this basically tries to recreate a node and name it secondary-node-pool, this will fail cause that already exists.
The text was updated successfully, but these errors were encountered: