mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
Add ForceNew metadata_startup_script field
This commit is contained in:
parent
a76d95229d
commit
9fa642cee7
|
@ -44,6 +44,8 @@ resource "google_compute_instance" "default" {
|
|||
foo = "bar"
|
||||
}
|
||||
|
||||
metadata_startup_script = "echo hi > /test.txt"
|
||||
|
||||
service_account {
|
||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||
}
|
||||
|
@ -73,6 +75,12 @@ The following arguments are supported:
|
|||
* `metadata` - (Optional) Metadata key/value pairs to make available from
|
||||
within the instance.
|
||||
|
||||
* `metadata_startup_script` - (Optional) An alternative to using the
|
||||
startup-script metadata key, except this one forces the instance to be
|
||||
recreated (thus re-running the script) if it is changed. 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 the instance. This can be
|
||||
specified multiple times for multiple networks. Structure is documented
|
||||
below.
|
||||
|
|
Loading…
Reference in New Issue
Block a user