Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Support for declaring VPC connector and Cloud SQL Connection, requests in GCR (platform) deploy variables #678

Open
canerdogan opened this issue Oct 23, 2020 · 1 comment
Labels
enhancement New feature or request plugin/google

Comments

@canerdogan
Copy link

Is your feature request related to a problem? Please describe.
I'd like to be able to declare my VPC connector and Cloud SQL Connection in the Google Cloud Run deployment block. We are using Google Cloud SQL and Memorystore Redis. We have to make this manually all time when we deploy and this is frustrating

Describe the solution you'd like

deploy {
  use "google-cloud-run" {
    project  = "myproject"
    location = "europe-west4"

    port = 8080

    static_environment = {
      "DB_HOST" = "socket:/cloudsql/myproject:europe-west4:mysql-cloudsql"
      "REDIS_HOST" = "10.0.0.2"
      "LOG_CHANNEL" = "errorlog"
    }

    vpc {
      connector = "projects/myproject/locations/europe-west4/connectors/my-custom-vpc"
      cloudsql = "myproject:europe-west4:mysql-cloudsql"
    }

    capacity {
      ...
    }

    auto_scaling {
      ...
    }
  }
}
@SubatomicHero
Copy link

We very much would like to be able to declare a vpc connector as part of the config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request plugin/google
Projects
None yet
Development

No branches or pull requests

3 participants