mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-06 18:51:13 +00:00
Fix instance/template metadata support
Update our instance template to include metadata_startup_script, to match our instance resource. Also, we've resolved the diff errors around metadata.startup-script, and people want to use that to create startup scripts that don't force a restart when they're changed, so let's stop disallowing it. Also, we had a bunch of calls to `schema.ResourceData.Set` that ignored the errors, so I added error handling for those calls. It's mostly bundled with this code because I couldn't be sure whether it was the root of bugs or not, so I took care of it while addressing the startup script issue.
This commit is contained in:
parent
b312a4bcae
commit
5b36f2f0e3
@ -136,6 +136,11 @@ The following arguments are supported:
|
||||
* `metadata` - (Optional) Metadata key/value pairs to make available from
|
||||
within instances created from this template.
|
||||
|
||||
* `metadata_startup_script` - (Optional) An alternative to using the
|
||||
startup-script metadata key, mostly to match the compute_instance resource.
|
||||
This replaces the startup-script metadata key on the created instance and
|
||||
thus the two mechanisms are not allowed to be used simultaneously.
|
||||
|
||||
* `network_interface` - (Required) Networks to attach to instances created from
|
||||
this template. This can be specified multiple times for multiple networks.
|
||||
Structure is documented below.
|
||||
|
Loading…
Reference in New Issue
Block a user