Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform apply to ask if a system reboot required for changing the infrastructure #6322

Closed
suvsap opened this issue May 8, 2020 · 2 comments
Assignees
Labels

Comments

@suvsap
Copy link

suvsap commented May 8, 2020

Hi,

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

Thanks,
Suvankar

@nat-henderson
Copy link
Contributor

You can use allow_stopping_for_update in this way.
https://www.terraform.io/docs/providers/google/r/compute_instance.html#allow_stopping_for_update

@ghost
Copy link

ghost commented Jun 8, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants