Terraform apply to notify if reboot needed for any changes that are applied


WE recently did some resizing our GCP instances to save cost. This would ideally go for reboot. We have observed that some of our engineers who are new to terraform not aware that the particular change that will be applied will go for reboot. This affected our live client.

Is their any way by which when we do terraform apply and if it requires to reboot the instance for sucessful completion then it should ask before doing reboot?

This change will require reboot. Do you want to proceed? Yes/no