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

Add ForceNew metadata_startup_script field #2375

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

sparkprime
Copy link
Contributor

This lacks tests & docs, but I wanted to discuss it before working further:

The idea is that if you use the metadata field startup-script to define the internal state of the instance, then you want changing that script to recreate the instance. The same is true for aws_instance and the userdata field, but this PR is just for GCE right now.

This solution adds another attribute called metadata_startup_script that is ForceNew and cannot be specified at the same time as metadata.startup_script.

What do you think?

@phinze
Copy link
Contributor

phinze commented Jun 17, 2015

In AWS user_data is always ForceNew, so I see this as a workaround for the fact that GCE's metadata cannot be ForceNew.

Am I understanding the scenario properly? If so, SGTM!

@mitchellh
Copy link
Contributor

This LGTM to me as well, merge at will @sparkprime

@ghost
Copy link

ghost commented May 1, 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 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.

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

Successfully merging this pull request may close these issues.

3 participants