-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_compute_instance: metadata_startup_script ignore_changes is not working #2529
Comments
I'm afraid I don't understand. The changes shown in that diff aren't |
Yes, it's a little bit strange but if I change startup script terraform will recreate network interface and if we use google_compute_instance_group_manager it will fail at all |
I have checked with AWS provider and it works as expected
If I change boot.sh file - nothing happens
|
That's very likely to be an upstream bug. @paddycarver: that indicates that the TPG |
This is almost certainly hashicorp/terraform#18209, which will be fixed in the next upstream TF release. In the meantime, If you change the subnetwork to a full URL, that should fix the issue. I'm going to go ahead and close this issue since I don't think there's anything we can do here, but feel free to comment and let us know how it goes! |
Thanks for the tip. It seems working fine. But I had to use full url for os image too. Instead of
use the following
Is that expected? Do I need to use full url by default? |
Some fields you do, but whatever the documentation at https://www.terraform.io/docs/providers/google/index.html says is what you'll have to do. In this particular case, an upstream bug meant that diffsuppressfuncs were being ignored, and so you had to have your config match state exactly |
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 👉 [email protected]. Thanks! |
This issue was originally opened by @Alexhha as hashicorp/terraform#19456. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
If I change bootstrap.sh - no updates should occur
Actual Behavior
Every time instance get a new ip address
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: