File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1543,6 +1543,15 @@ resource "google_cloudfunctions2_function_iam_member" "refresh_materialized_view
15431543 member = " serviceAccount:${ google_service_account . functions_service_account . email } "
15441544}
15451545
1546+ # Ensure the service account has the required IAM permissions to invoke the refresh_materialized_view function
1547+ resource "google_cloudfunctions2_function_iam_member" "refresh_materialized_view_invoker" {
1548+ project = var. project_id
1549+ location = " northamerica-northeast1" # Ensure the correct region is specified
1550+ cloud_function = google_cloudfunctions2_function. refresh_materialized_view . name
1551+ role = " roles/cloudfunctions.invoker"
1552+ member = " serviceAccount:${ google_service_account . functions_service_account . email } "
1553+ }
1554+
15461555# Task queue to invoke refresh_materialized_view function
15471556resource "google_cloud_tasks_queue" "refresh_materialized_view_queue" {
15481557 name = " refresh-materialized-view-queue-${ var . environment } "
You can’t perform that action at this time.
0 commit comments