petoju / terraform-provider-mysql

Terraform MySQL provider – unofficial fork
https://registry.terraform.io/providers/petoju/mysql
Mozilla Public License 2.0
73 stars 48 forks source link

Add support for GCP CloudSQL Native Connection #48

Closed eugenepaniot closed 1 year ago

eugenepaniot commented 1 year ago

This PR addes support for native connection to Google CloudSQL Mysql Instances (without any extra auth proxy). See https://github.com/petoju/terraform-provider-mysql/issues/40

Usage example:

provider "mysql" {
  endpoint = "cloudsql://my-project:us-central1:my-mysql-instance"
  username = "root"
  password = "password"
}

my-project:us-central1:my-mysql-instance is sql_database_instance.connection_name

petoju commented 1 year ago

Thanks!