-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 shouldn't favor metadata_startup_script over startup-script key in metadata #10167
Conversation
…nstead of metadata.startup_script
See also #8407 :) |
@JDiPierro -- |
Oh, also, sounds like this breaks some stuff: #3507. Sorry, I'm working right now to try to find a good answer to this problem that can get us on a forward path again. |
@paddyforan -- |
Hey @cblecker, In investigating this issue, I actually looked into that option--looking back at the original pull request, it looks like the metadata_startup_script attribute was included in #2375, because there's no way to make |
Totally understand the need for discussion and review! Just wanted to bring Evan's piece into it. I'd also note that forcing the instance to recreate when metadata is updated isn't always preferable in the GCP world (where as it might be in AWS). You can update metadata manually on an instance in Google and it doesn't force instance recreation. Look forward to hearing what the result of those internal talks is :) |
Appreciate the direction. And the note; I totally see the value in updating the startup script without recreating things. I know it certainly makes sharing configuration code between instances and instance templates trickier, as forcing recreation of an instance template can have some pretty wide consequences. It's a balancing act at this point of trying to manage complexity while supporting as many use cases as possible, and prioritising those use cases. I'm trying not to keep this as an internal discussion, but I did want to get feedback from other Terraform team members before I put my foot in my mouth, given how complicated this trade-off is. |
re: Glad to see this is being worked on, hope to have a clean way to manage this in a future version :) Feel free to close this PR in favor of a future one that addresses the issue. |
This should be covered by #10537. :) Thanks for the PR! |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Fixes #9999