Skip to content

Commit

Permalink
Update registry
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjtaylor committed Jun 5, 2024
1 parent c7f8fa3 commit 83f4b57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ resource "google_cloud_run_v2_job" "default" {
}
}
timeout = "2700s"
service_account = "${google_service_account.sa.email}"
service_account = coalesce(
length(google_service_account.sa) > 0 ? google_service_account.sa[0].email : null,
data.google_service_account.existing_sa.email
)
}
}
lifecycle {
Expand Down

0 comments on commit 83f4b57

Please sign in to comment.