mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
cli: prevent terraform apply drift when patching and re-applying existing terraform deployment (#1873)
The implementation would recreate the gcp instance template (including all instances and state disks) whenever the image tfvar changes.
Fixed by ignoring lifecycle changes on the instance templates.
Fixes 8c3b963
This commit is contained in:
parent
900d51d49f
commit
439359ffbc
@ -78,6 +78,19 @@ resource "google_compute_instance_template" "template" {
|
||||
enable_vtpm = true
|
||||
enable_integrity_monitoring = true
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
tags,
|
||||
labels,
|
||||
disk, # required. update procedure modifies the instance template externally
|
||||
metadata,
|
||||
network_interface,
|
||||
scheduling,
|
||||
service_account,
|
||||
shielded_instance_config,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_compute_instance_group_manager" "instance_group_manager" {
|
||||
|
Loading…
Reference in New Issue
Block a user