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
Hey,
we want to be able to when upgrading a instance or recycling with the create_before_destroy flag to make sure certain events passed (for example provisionner finished successfully etc .. ). We dont want upgrade and have our cluster taken down because of this. With that being said, is it possible to implement something similar to:
bring up all instances
if any of the instances are unsuccessful destroy all the new instances and the state hasn't changed
if successfull delete all previous instances
This gives the benefit of also not crippling the cluster of VMs because we lost some of our machines and can't handle the load as efficiently.
The text was updated successfully, but these errors were encountered:
This is an old issue so I'm not sure what exactly was possible at the time, but in modern Terraform I would expect that a provisioner failure during the create leg of a "create before destroy" replace would:
Mark the affected object as "tainted" in the state, so a future plan will know to destroy it.
Halt and return the provisioning error before reaching the "destroy" leg, since the destroy would depend on the create.
This doesn't exactly match the request because the first apply won't immediately destroy the failed objects, but the next plan would propose to destroy them unless the operator manually removes the tainted status using the terraform untaint command.
Therefore I wonder if the current behavior is already close enough to consider this "done". 🤔
Hey,
we want to be able to when upgrading a instance or recycling with the create_before_destroy flag to make sure certain events passed (for example provisionner finished successfully etc .. ). We dont want upgrade and have our cluster taken down because of this. With that being said, is it possible to implement something similar to:
This gives the benefit of also not crippling the cluster of VMs because we lost some of our machines and can't handle the load as efficiently.
The text was updated successfully, but these errors were encountered: