mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-06 02:02:43 +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"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
metadata_startup_script = "echo hi > /test.txt"
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
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
|
* `metadata` - (Optional) Metadata key/value pairs to make available from
|
||||||
within the instance.
|
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
|
* `network_interface` - (Required) Networks to attach to the instance. This can be
|
||||||
specified multiple times for multiple networks. Structure is documented
|
specified multiple times for multiple networks. Structure is documented
|
||||||
below.
|
below.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user