Mark externally managed terraform resources to make infrastructure terraform appliable throughout its lifetime (#442)

* Mark externally managed terraform resources to make infrastructure terraform appliable throughout its lifetime
* Use correct field for nat gateway

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Malte Poll 2022-11-07 11:04:10 +01:00 committed by GitHub
parent a70161730f
commit fa6dfdff4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 7 deletions

View file

@ -94,4 +94,11 @@ resource "google_compute_instance_group_manager" "instance_group_manager" {
port = named_port.value.port
}
}
lifecycle {
ignore_changes = [
target_size, # required. autoscaling modifies the instance count externally
version, # required. update procedure modifies the instance template externally
]
}
}