Google Cloud SQL - MySQL

An open-source relational database management system.

Example Terraform Resource Usage


resource "apono_integration" "gcp-cloud-sql-mysql-integration" {
  name                     = "Google Cloud SQL - MySQL"
  type                     = "gcp-cloud-sql-mysql"
  connector_id             = "apono-connector-id"
  connected_resource_types = ["resource-type-1", "resource-type-2"]
  metadata = {
    auth_type = "<Auth Type>"
    gcp_project_id = "<Project ID>"
    gcp_region = "<Region>"
    gcp_instance_id = "<Instance ID>"
    gcp_instance_id_user_override = "<Instance ID User Override>"
    credentials_rotation_period_in_days = "<Credentials rotation period (in days)>"
    credentials_cleanup_period_in_days = "<User cleanup after access is revoked (in days)>"
  }
  gcp_secret = {
    project    = "project_template_value"
    secret_id  = "gcp_secret_id_template_value"
  }
}

Schema


  • type gcp-cloud-sql-mysql

  • connected_resource_types List of resource types to sync. The following are the available resource type/s you can use:

    • gcp-cloud-sql-mysql

    • gcp-cloud-sql-mysql-database

    • gcp-cloud-sql-mysql-table

    • gcp-cloud-sql-mysql-role

Metadata

  • auth_type (Required | String) Auth Type

    • Possible values: gcp-iam-auth, user-password

  • gcp_project_id (Required | String) Project ID

  • gcp_region (Required | String) Region

  • gcp_instance_id (Required | String) Instance ID

  • gcp_instance_id_user_override (Optional | String) Instance ID User Override

  • credentials_rotation_period_in_days (Optional | String) Credentials rotation period (in days)

  • credentials_cleanup_period_in_days (Optional | String) User cleanup after access is revoked (in days)

Last updated