IAM bindings in compute-vm need to depend on the instance resource

This commit is contained in:
Ludovico Magnocavallo 2020-06-22 16:16:19 +02:00
parent e2a9e3d415
commit 9f3500bff3
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
- the top-level `docker-images` folder has been moved inside `modules/cloud-config-container/onprem`
- `dns_keys` output added to the `dns` module
- add `group-config` variable, `groups` and `group_self_links` outputs to `net-ilb` module to allow creating ILBs for externally managed instances
- make the IAM bindings depend on the compute instance in the `compute-vm` module
## [2.0.0] - 2020-06-11

View File

@ -175,6 +175,7 @@ resource "google_compute_instance_iam_binding" "default" {
instance_name = each.value.name
role = each.value.role
members = lookup(var.iam_members, each.value.role, [])
depends_on = [google_compute_instance.default]
}
resource "google_compute_instance_template" "default" {