Skip to content

Commit 9f64b92

Browse files
Add note on referencing instance template from within stateful MIG (#4152) (#2643)
* Add note on referencing instance template from within stateful MIG configurations * Extra var Signed-off-by: Modular Magician <[email protected]>
1 parent 59fad20 commit 9f64b92

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.changelog/4152.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

website/docs/r/compute_per_instance_config.html.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ resource "google_compute_per_instance_config" "with_disk" {
9191
preserved_state {
9292
metadata = {
9393
foo = "bar"
94+
// Adding a reference to the instance template used causes the stateful instance to update
95+
// if the instance template changes. Otherwise there is no explicit dependency and template
96+
// changes may not occur on the stateful instance
97+
instance_template = google_compute_instance_template.igm-basic.self_link
9498
}
9599
96100
disk {

website/docs/r/compute_region_per_instance_config.html.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ resource "google_compute_region_per_instance_config" "with_disk" {
9292
preserved_state {
9393
metadata = {
9494
foo = "bar"
95+
// Adding a reference to the instance template used causes the stateful instance to update
96+
// if the instance template changes. Otherwise there is no explicit dependency and template
97+
// changes may not occur on the stateful instance
98+
instance_template = google_compute_instance_template.igm-basic.self_link
9599
}
96100
97101
disk {

0 commit comments

Comments
 (0)