Skip to content

Commit

Permalink
add depends_on to IAM policies
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi-cit committed Feb 21, 2024
1 parent 074ad81 commit b863ab3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9620,6 +9620,8 @@ resource "google_project_iam_binding" "tagUser" {
"serviceAccount:service-${data.google_project.project.number}@container-engine-robot.iam.gserviceaccount.com",
"serviceAccount:${data.google_project.project.number}@cloudservices.gserviceaccount.com",
]

depends_on = [google_project_iam_binding.tagHoldAdmin]
}

resource "time_sleep" "wait_120_seconds" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4285,6 +4285,8 @@ resource "google_project_iam_binding" "tagUser" {
"serviceAccount:service-${data.google_project.project.number}@container-engine-robot.iam.gserviceaccount.com",
"serviceAccount:${data.google_project.project.number}@cloudservices.gserviceaccount.com",
]

depends_on = [google_project_iam_binding.tagHoldAdmin]
}

resource "time_sleep" "wait_120_seconds" {
Expand Down Expand Up @@ -4399,6 +4401,8 @@ resource "google_project_iam_binding" "tagUser" {
"serviceAccount:service-${data.google_project.project.number}@container-engine-robot.iam.gserviceaccount.com",
"serviceAccount:${data.google_project.project.number}@cloudservices.gserviceaccount.com",
]

depends_on = [google_project_iam_binding.tagHoldAdmin]
}

resource "time_sleep" "wait_120_seconds" {
Expand Down Expand Up @@ -4514,6 +4518,8 @@ resource "google_project_iam_binding" "tagUser" {
"serviceAccount:service-${data.google_project.project.number}@container-engine-robot.iam.gserviceaccount.com",
"serviceAccount:${data.google_project.project.number}@cloudservices.gserviceaccount.com",
]

depends_on = [google_project_iam_binding.tagHoldAdmin]
}

resource "time_sleep" "wait_120_seconds" {
Expand Down

0 comments on commit b863ab3

Please sign in to comment.