IAM bindings in compute-vm need to depend on the instance resource
This commit is contained in:
parent
e2a9e3d415
commit
9f3500bff3
|
@ -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
|
||||
|
||||
|
|
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue