{"id":15111543,"url":"https://github.com/terraform-google-modules/terraform-google-sql-db","last_synced_at":"2026-01-07T13:17:56.956Z","repository":{"id":25307466,"uuid":"103698814","full_name":"terraform-google-modules/terraform-google-sql-db","owner":"terraform-google-modules","description":"Creates a Cloud SQL database instance","archived":false,"fork":false,"pushed_at":"2025-04-29T00:04:05.000Z","size":1805,"stargazers_count":278,"open_issues_count":21,"forks_count":450,"subscribers_count":40,"default_branch":"main","last_synced_at":"2025-04-29T01:25:33.995Z","etag":null,"topics":["cft-terraform","databases"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/terraform-google-modules/sql-db/google","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-google-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-15T20:33:19.000Z","updated_at":"2025-04-29T00:03:51.000Z","dependencies_parsed_at":"2023-10-05T04:17:07.632Z","dependency_job_id":"c15f8bee-f887-4994-b61a-9cb45c7914b0","html_url":"https://github.com/terraform-google-modules/terraform-google-sql-db","commit_stats":{"total_commits":448,"total_committers":143,"mean_commits":3.132867132867133,"dds":0.890625,"last_synced_commit":"600e0a95c5fe9c882d5d15192615a6ef470600d9"},"previous_names":[],"tags_count":67,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-sql-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-sql-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-sql-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-sql-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-google-modules","download_url":"https://codeload.github.com/terraform-google-modules/terraform-google-sql-db/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259387,"owners_count":22040821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cft-terraform","databases"],"created_at":"2024-09-26T00:21:01.627Z","updated_at":"2026-01-07T13:17:56.950Z","avatar_url":"https://github.com/terraform-google-modules.png","language":"HCL","readme":"# terraform-google-sql\n\nterraform-google-sql makes it easy to create Google CloudSQL instance and implement high availability settings.\nThis module consists of the following submodules:\n\n- [mssql](https://github.com/terraform-google-modules/terraform-google-sql-db/tree/master/modules/mssql)\n- [mysql](https://github.com/terraform-google-modules/terraform-google-sql-db/tree/master/modules/mysql)\n- [postgresql](https://github.com/terraform-google-modules/terraform-google-sql-db/tree/master/modules/postgresql)\n\nSee more details in each module's README.\n\n## Compatibility\nThis module is meant for use with Terraform 1.3+ and tested using Terraform 1.6+.\nIf you find incompatibilities using Terraform `\u003e=1.13`, please open an issue.\n\n## Upgrading\n\nThe current version is 26.X. The following guides are available to assist with upgrades:\n\n- [1.X -\u003e 2.0](./docs/upgrading_to_sql_db_2.0.0.md)\n- [2.X -\u003e 3.0](./docs/upgrading_to_sql_db_3.0.0.md)\n- [3.X -\u003e 4.0](./docs/upgrading_to_sql_db_4.0.0.md)\n- [10.X -\u003e 11.0](./docs/upgrading_to_sql_db_11.0.0.md)\n- [11.X -\u003e 12.0](./docs/upgrading_to_sql_db_12.0.0.md)\n- [13.X -\u003e 14.0](./docs/upgrading_to_sql_db_14.0.0.md)\n- [14.X -\u003e 15.0](./docs/upgrading_to_sql_db_15.0.0.md)\n- [16.X -\u003e 17.0](./docs/upgrading_to_sql_db_17.0.0.md)\n- [19.X -\u003e 20.0](./docs/upgrading_to_sql_db_20.0.0.md)\n- [20.X -\u003e 21.0](./docs/upgrading_to_sql_db_21.0.md)\n- [21.X -\u003e 22.0](./docs/upgrading_to_sql_db_22.0.md)\n- [22.X -\u003e 23.0](./docs/upgrading_to_sql_db_23.0.md)\n- [23.X -\u003e 24.0](./docs/upgrading_to_sql_db_24.0.md)\n- [25.X -\u003e 26.0](./docs/upgrading_to_sql_db_26.0.md)\n\n## Root module\n\nThe root module has been deprecated. Please switch to using one of the submodules.\n\n## Requirements\n\n### Installation Dependencies\n\n- [Terraform](https://www.terraform.io/downloads.html) \u003e= 1.3.0\n- [terraform-provider-google](https://github.com/terraform-providers/terraform-provider-google) plugin v5.12+\n- [Terraform Provider Beta for GCP](https://github.com/terraform-providers/terraform-provider-google-beta) plugin v5.12+\n\n### Configure a Service Account\n\nIn order to execute this module you must have a Service Account with the following:\n\n#### Roles\n\n- Cloud SQL Admin: `roles/cloudsql.admin`\n- Compute Network Admin: `roles/compute.networkAdmin`\n\n### Enable APIs\n\nIn order to operate with the Service Account you must activate the following APIs on the project where the Service Account was created:\n\n- Cloud SQL Admin API: `sqladmin.googleapis.com`\n\nIn order to use Private Service Access, required for using Private IPs, you must activate\nthe following APIs on the project where your VPC resides:\n\n- Cloud SQL Admin API: `sqladmin.googleapis.com`\n- Compute Engine API: `compute.googleapis.com`\n- Service Networking API: `servicenetworking.googleapis.com`\n- Cloud Resource Manager API: `cloudresourcemanager.googleapis.com`\n\n#### Service Account Credentials\n\nYou can pass the service account credentials into this module by setting the following environment variables:\n\n* `GOOGLE_CREDENTIALS`\n* `GOOGLE_CLOUD_KEYFILE_JSON`\n* `GCLOUD_KEYFILE_JSON`\n\nSee more [details](https://www.terraform.io/docs/providers/google/provider_reference.html#configuration-reference).\n\n## Provision Instructions\n\nThis module has no root configuration. A module with no root configuration cannot be used directly.\n\nCopy and paste into your Terraform configuration, insert the variables, and run terraform init :\n\nFor MySQL :\n```\nmodule \"sql-db\" {\n  source  = \"GoogleCloudPlatform/sql-db/google//modules/mysql\"\n  version = \"~\u003e 27.1\"\n}\n```\n\nor for PostgreSQL :\n\n```\nmodule \"sql-db\" {\n  source  = \"GoogleCloudPlatform/sql-db/google//modules/postgresql\"\n  version = \"~\u003e 22.0\"\n}\n```\n\nor for MSSQL Server :\n\n```\nmodule \"sql-db\" {\n  source  = \"GoogleCloudPlatform/sql-db/google//modules/mssql\"\n  version = \"~\u003e 22.0\"\n}\n```\n\n\n## Contributing\n\nRefer to the [contribution guidelines](./CONTRIBUTING.md) for\ninformation on contributing to this module.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-google-modules%2Fterraform-google-sql-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-google-modules%2Fterraform-google-sql-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-google-modules%2Fterraform-google-sql-db/lists"}