|
|
|
|
|
by gazoakley
2240 days ago
|
|
>> There is a review phase of course and it's very important because it might do anything. Anybody who's had to use terraform can attest that it is scary to run. This is no worse than Ansible - if for a set of EC2 instances the user "set to 0 to delete them" then Ansible will blindly do as requested and be just as destructive. On the other hand: * Terraform does its best to enforce the recommended plan/apply workflow - the plan is always presented before any changes are made, and auto-approval is strongly discouraged. * There are multiple options for review - do it there and then, or store the plan as an artefact and share with others for review. * It doesn't matter when you run a stored plan - the plan is the set of changes that will be applied regardless of current state. * The summary makes very clear if anything is going to be destroyed in bright red text. Ansible offers some visibility of what it will do with dry runs, although it's not as complete - there's no way to guarantee it will do the same thing next time if changes have been made in the interim. |
|