hashicorp / waypoint

A tool to build, deploy, and release any application on any platform.
https://waypointproject.io
Other
4.76k stars 326 forks source link

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

Open canerdogan opened 4 years ago

canerdogan commented 4 years ago

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 commented 3 years ago

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