-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Background:
- There are two variations of this Three-tier web app:
- PostgreSQL
- MySQL
- The
CLOUD_IAM_SERVICE_ACCOUNTfor each variation looks different:
resource "google_sql_user" "main" {
...
name = var.database_type == "postgresql" ? "${google_service_account.runsa.account_id}@${var.project_id}.iam" : "foo"
type = var.database_type == "postgresql" ? "CLOUD_IAM_SERVICE_ACCOUNT" : null
password = var.database_type == "mysql" ? "bar" : null
- This discussion thread states that
type = "CLOUD_IAM_SERVICE_ACCOUNT"didn't work for MySQL right out of the box. - This
CLOUD_IAM_SERVICE_ACCOUNToption allows us to use Cloud Run's service account to access the database in CloudSQL.
Feature request:
- Use
CLOUD_IAM_SERVICE_ACCOUNTfor the MySQL variation too. According to the docs,CLOUD_IAM_SERVICE_ACCOUNTis supported for both PostgreSQL an MySQL.
Metadata
Metadata
Assignees
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.