Skip to content

Commit

Permalink
add time sleep for IAM propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cit committed Oct 24, 2024
1 parent 2fd41b2 commit 1893361
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/im_cloudbuild_workspace/cb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,19 @@ resource "google_cloudbuild_trigger" "triggers" {

depends_on = [
google_project_iam_member.im_sa_roles,
time_sleep.iam_propagation,
]
}

resource "time_sleep" "iam_propagation" {
create_duration = "30s"

depends_on = [
google_project_iam_member.im_sa_roles,
google_project_iam_member.cb_config_admin_role,
google_project_iam_member.cb_config_agent_role,
google_project_iam_member.cb_logWriter_role,
google_project_iam_member.cb_serviceAccountUser_role,
google_project_iam_member.cb_storage_objects_viewer,
]
}

0 comments on commit 1893361

Please sign in to comment.