FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Fix multiple longstanding issues

Merged Ryan Kowalewski requested to merge multiple-issues into master
1 unresolved thread
2 files
+ 12
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
3
@@ -7,10 +7,10 @@ resource "google_service_account" "webapp" {
display_name = coalesce(var.service_account_display_name, "Web application Cloud Run service account")
}
# The webapp service account has the ability to connect to the SQL instance.
# (Only if sql_instance_connection_name is non-empty.)
# Grant the webapp service account the ability to connect to the SQL instance
# via the grant_sql_client_role_to_webapp_sa boolean variable.
resource "google_project_iam_member" "webapp_sql_client" {
count = (var.sql_instance_connection_name != "") ? 1 : 0
count = var.grant_sql_client_role_to_webapp_sa ? 1 : 0
project = local.sql_instance_project
role = "roles/cloudsql.client"
Loading