Try to test your new configuration on some test environment where you can bootstrap an one master with one node and verify your terraform changes there first.
Although it's not really terraform task. You could use Ansible to be more safe or just manually upgrade all. 3 master / 3 node can be done manually.