You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compute: changed the import / drift detection behaviours for `metadata_startup_script`, `metadata.startup-script` in `google_compute_instance`. Now, `metadata.startup-script` will be set by default, and `metadata_startup_script` will only be set if present.
Copy file name to clipboardExpand all lines: website/docs/r/compute_instance.html.markdown
+10-10
Original file line number
Diff line number
Diff line change
@@ -132,16 +132,16 @@ The following arguments are supported:
132
132
we provide a special attribute, `metadata_startup_script`, which is documented below.
133
133
134
134
*`metadata_startup_script` - (Optional) An alternative to using the
135
-
startup-script metadata key, except this one forces the instance to be
136
-
recreated (thus re-running the script) if it is changed. This replaces the
137
-
startup-script metadata key on the created instance and thus the two
138
-
mechanisms are not allowed to be used simultaneously. Users are free to use
139
-
either mechanism - the only distinction is that this separate attribute
140
-
will cause a recreate on modification. On import, `metadata_startup_script`
141
-
will be set, but `metadata.startup-script`will not - if you choose to use the
142
-
other mechanism, you will see a diff immediately after import, which will cause a
143
-
destroy/recreate operation. You may want to modify your state file manually
144
-
using `terraform state` commands, depending on your use case.
135
+
startup-script metadata key, except this one forces the instance to be recreated
136
+
(thus re-running the script) if it is changed. This replaces the startup-script
137
+
metadata key on the created instance and thus the two mechanisms are not
138
+
allowed to be used simultaneously. Users are free to use either mechanism - the
139
+
only distinction is that this separate attribute will cause a recreate on
140
+
modification. On import, `metadata_startup_script` will not be set - if you
141
+
choose to specify it you will see a diff immediately after import causing a
142
+
destroy/recreate operation. If importing an instance and specifying this value
143
+
is desired, you will need to modify your state file manually using
144
+
`terraform state` commands.
145
145
146
146
*`min_cpu_platform` - (Optional) Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
147
147
`Intel Haswell` or `Intel Skylake`. See the complete list [here](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
0 commit comments