{"id":25693260,"url":"https://github.com/data-platform-hq/terraform-google-cloud-sql","last_synced_at":"2025-10-13T19:15:34.845Z","repository":{"id":65503911,"uuid":"565782266","full_name":"data-platform-hq/terraform-google-cloud-sql","owner":"data-platform-hq","description":"Terraform module for managing Google Cloud SQL","archived":false,"fork":false,"pushed_at":"2023-01-26T10:56:54.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T23:34:55.969Z","etag":null,"topics":["cloud-sql","google-cloud","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/data-platform-hq/cloud-sql/google/latest","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/data-platform-hq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-14T10:12:20.000Z","updated_at":"2024-04-19T16:14:08.000Z","dependencies_parsed_at":"2023-02-14T16:31:18.789Z","dependency_job_id":null,"html_url":"https://github.com/data-platform-hq/terraform-google-cloud-sql","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/data-platform-hq/terraform-google-cloud-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-platform-hq%2Fterraform-google-cloud-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-platform-hq%2Fterraform-google-cloud-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-platform-hq%2Fterraform-google-cloud-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-platform-hq%2Fterraform-google-cloud-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/data-platform-hq","download_url":"https://codeload.github.com/data-platform-hq/terraform-google-cloud-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-platform-hq%2Fterraform-google-cloud-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016887,"owners_count":26085884,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cloud-sql","google-cloud","terraform-module"],"created_at":"2025-02-24T23:35:00.339Z","updated_at":"2025-10-13T19:15:34.811Z","avatar_url":"https://github.com/data-platform-hq.png","language":"HCL","readme":"# Google Cloud SQL Terraform module\nTerraform module for creation Google Cloud SQL resources\n\n## Usage\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n| Name                                                                      | Version  |\n| ------------------------------------------------------------------------- | -------- |\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.0.0 |\n| \u003ca name=\"requirement_google\"\u003e\u003c/a\u003e [google](#requirement\\_google)          | = 4.24.0 |\n| \u003ca name=\"requirement_random\"\u003e\u003c/a\u003e [random](#requirement\\_random)          | = 3.4.3  |\n\n## Providers\n| Name                                                       | Version |\n| ---------------------------------------------------------- | ------- |\n| \u003ca name=\"provider_google\"\u003e\u003c/a\u003e [google](#provider\\_google) | 4.24.0  |\n| \u003ca name=\"provider_random\"\u003e\u003c/a\u003e [random](#provider\\_random) | 3.4.3   |\n\n## Modules\nNo modules.\n\n## Resources\n| Name                                                                                                                                                                        | Type     |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |\n| [google_sql_user.users](https://registry.terraform.io/providers/hashicorp/google/4.24.0/docs/resources/sql_user)                                                            | resource |\n| [google_compute_global_address.private_ip_address](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_global_address)                   | resource |\n| [google_service_networking_connection.private_vpc_connection](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_networking_connection) | resource |\n| [google_sql_database_instance.sql_instance](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance)                           | resource |\n| [google_project_iam_member.sql](https://registry.terraform.io/providers/hashicorp/google/4.24.0/docs/resources/google_project_iam)                                          | resource |\n| [random_string.sqluser_passwd](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string)                                                       | resource |\n| [random_id.db_name_suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id)                                                               | resource |\n\n\n\n## Inputs\n| Name                                                                                          | Description                                                                                                                                           | Type          | Default                            | Required |\n| --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------------------- | :------: |\n| \u003ca name=\"input_project_id\"\u003e\u003c/a\u003e [project\\_id](#input\\_project\\_id)                            | ID of the project in which the resources should be created.                                                                                           | `string`      | n/a                                |   yes    |\n| \u003ca name=\"input_region\"\u003e\u003c/a\u003e [region](#input\\_region)                                          | The location or cloud resources region for the environment.                                                                                           | `string`      | n/a                                |   yes    |\n| \u003ca name=\"input_product_base_name\"\u003e\u003c/a\u003e [product\\_base\\_name](#input\\_product\\_base\\_name)     | Cloud resources base name (used to create services).                                                                                                  | `string`      | n/a                                |   yes    |\n| \u003ca name=\"input_env\"\u003e\u003c/a\u003e [env](#input\\_env)                                                   | Variable to mark the environment of the resource (used to create services).                                                                           | `string`      | n/a                                |   yes    |\n| \u003ca name=\"input_users\"\u003e\u003c/a\u003e [users](#input\\_users)                                             | Names of SQL instance users.                                                                                                                          | `map(string)` | {}                                 |    no    |\n| \u003ca name=\"input_network\"\u003e\u003c/a\u003e [network](#input\\_network)                                       | The VPC network from which the Cloud SQL instance is accessible for private IP.                                                                       | `string`      | n/a                                |   yes    |\n| \u003ca name=\"input_purpose\"\u003e\u003c/a\u003e [purpose](#input\\_purpose)                                       | The purpose of the resource. VPC_PEERING or PRIVATE_SERVICE_CONNECT.                                                                                  | `string`      | \"VPC_PEERING\"                      |    no    |\n| \u003ca name=\"input_address_type\"\u003e\u003c/a\u003e [address\\_type](#input\\_address\\_type)                      | The type of the address to reserve. EXTERNAL or INTERNAL.                                                                                             | `string`      | \"INTERNAL\"                         |    no    |\n| \u003ca name=\"input_prefix_length\"\u003e\u003c/a\u003e [prefix\\_length](#input\\_prefix\\_length)                   | The prefix length of the IP range. For more see google_compute_global_address resource description.                                                   | `number`      | \"24\"                               |    no    |\n| \u003ca name=\"input_service\"\u003e\u003c/a\u003e [service](#input\\_service)                                       | Provider peering service that is managing peering connectivity for a service provider organization.                                                   | `string`      | \"servicenetworking.googleapis.com\" |    no    |\n| \u003ca name=\"input_db_version\"\u003e\u003c/a\u003e [db\\_version](#input\\_db\\_version)                            | The MySQL, PostgreSQL or SQL Server version to use (see the description of the google_sql_database_instance resource).                                | `string`      | \"SQLSERVER_2019_EXPRESS\"           |    no    |\n| \u003ca name=\"input_tier\"\u003e\u003c/a\u003e [tier](#input\\_tier)                                                | The machine type to use.                                                                                                                              | `string`      | n/a                                |   yes    |\n| \u003ca name=\"input_public_ip\"\u003e\u003c/a\u003e [public\\_ip](#input\\_public\\_ip)                               | Whether this Cloud SQL instance should be assigned a public IPV4 address. At least public_ip must be enabled or a private_network must be configured. | `bool`        | false                              |    no    |\n| \u003ca name=\"input_require_ssl\"\u003e\u003c/a\u003e [require\\_ssl](#input\\_require\\_ssl)                         | Whether SSL connections over IP are enforced or not.                                                                                                  | `bool`        | true                               |    no    |\n| \u003ca name=\"input_database_flags\"\u003e\u003c/a\u003e [database\\_flags](#input\\_database\\_flags)                | Cloud SQL instance settings flags.                                                                                                                    | `map(string)` | {}                                 |    no    |\n| \u003ca name=\"input_deletion_protection\"\u003e\u003c/a\u003e [deletion\\_protection](#input\\_deletion\\_protection) | Whether or not to allow Terraform to destroy the instance. To protect SQL instence set true.                                                          | `bool`        | false                              |    no    |\n| \u003ca name=\"input_sqlsa_roles\"\u003e\u003c/a\u003e [sqlsa\\_roles](#input\\_sqlsa\\_roles)                         | The role that should be applied for SQL service account.                                                                                              | `set(string)` | []                                 |    no    |\n| \u003ca name=\"input_labels\"\u003e\u003c/a\u003e [labels](#input\\_labels)                                          | A set of key/value user label pairs to assign to the instance.                                                                                        | `map(string)` | {}                                 |    no    |\n\n## Outputs\n| Name                                                                                        | Description                                                     |\n| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |\n| \u003ca name=\"output_sql_instance_ip\"\u003e\u003c/a\u003e [sql\\_instance\\_ip](#output\\_sql\\_instance\\_ip)       | The first private IPv4 address assigned to sql instance.        |\n| \u003ca name=\"output_sql_instance_name\"\u003e\u003c/a\u003e [sql\\_instance\\_name](#output\\_sql\\_instance\\_name) | The sql instance name.                                          |\n| \u003ca name=\"output_sql_service_acc\"\u003e\u003c/a\u003e [sql\\_service\\_acc](#output\\_dp\\_serverless\\_secret)  | The service account email address assigned to the sql instance. |\n| \u003ca name=\"output_users_creds\"\u003e\u003c/a\u003e [users\\_creds](#output\\_users\\_creds)                     | Passwords for provided users.                                   |\n\u003c!-- END_TF_DOCS --\u003e\n\n## License\n\nApache 2 Licensed. For more information please see [LICENSE](https://github.com/data-platform-hq/terraform-google-cloud-sql/blob/main/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-platform-hq%2Fterraform-google-cloud-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdata-platform-hq%2Fterraform-google-cloud-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-platform-hq%2Fterraform-google-cloud-sql/lists"}