{"id":25678174,"url":"https://github.com/konpyutaika/terraform-gcp-cloud-sql","last_synced_at":"2025-06-26T02:05:20.409Z","repository":{"id":113213113,"uuid":"540968939","full_name":"konpyutaika/terraform-gcp-cloud-sql","owner":"konpyutaika","description":"Terraform module to deploy GCP Cloud SQL","archived":false,"fork":false,"pushed_at":"2022-09-24T21:38:15.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T16:14:14.883Z","etag":null,"topics":["cloud-sql","gcp","terraform"],"latest_commit_sha":null,"homepage":"","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/konpyutaika.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-24T21:14:42.000Z","updated_at":"2022-09-24T22:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"4693cb2b-0df6-452b-8911-01adef92d043","html_url":"https://github.com/konpyutaika/terraform-gcp-cloud-sql","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/konpyutaika/terraform-gcp-cloud-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konpyutaika%2Fterraform-gcp-cloud-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konpyutaika%2Fterraform-gcp-cloud-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konpyutaika%2Fterraform-gcp-cloud-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konpyutaika%2Fterraform-gcp-cloud-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konpyutaika","download_url":"https://codeload.github.com/konpyutaika/terraform-gcp-cloud-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konpyutaika%2Fterraform-gcp-cloud-sql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261984645,"owners_count":23240303,"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":["cloud-sql","gcp","terraform"],"created_at":"2025-02-24T15:37:49.323Z","updated_at":"2025-06-26T02:05:20.400Z","avatar_url":"https://github.com/konpyutaika.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e=0.15 |\n| \u003ca name=\"requirement_google\"\u003e\u003c/a\u003e [google](#requirement\\_google) | \u003e= 3.89.0 |\n| \u003ca name=\"requirement_random\"\u003e\u003c/a\u003e [random](#requirement\\_random) | \u003e= 3.1.0 |\n| \u003ca name=\"requirement_vault\"\u003e\u003c/a\u003e [vault](#requirement\\_vault) | \u003e= 2.17.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_google\"\u003e\u003c/a\u003e [google](#provider\\_google) | \u003e= 3.89.0 |\n| \u003ca name=\"provider_google-beta\"\u003e\u003c/a\u003e [google-beta](#provider\\_google-beta) | n/a |\n| \u003ca name=\"provider_random\"\u003e\u003c/a\u003e [random](#provider\\_random) | \u003e= 3.1.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [google-beta_google_secret_manager_secret.registry_sql_client_cert](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/google_secret_manager_secret) | resource |\n| [google-beta_google_secret_manager_secret.registry_sql_user_password](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/google_secret_manager_secret) | resource |\n| [google-beta_google_secret_manager_secret_version.registry_sql_client_cert](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/google_secret_manager_secret_version) | resource |\n| [google-beta_google_secret_manager_secret_version.secret-version-basic](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/google_secret_manager_secret_version) | resource |\n| [google_sql_database.cloudsql_database](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database) | resource |\n| [google_sql_database_instance.cloudsql_instance](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance) | resource |\n| [google_sql_ssl_cert.client_cert](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_ssl_cert) | resource |\n| [google_sql_user.cloudsql_user](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_user) | resource |\n| [random_password.cloudsql_user_password](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_authorized_cidrs\"\u003e\u003c/a\u003e [authorized\\_cidrs](#input\\_authorized\\_cidrs) | Authorized networks CIDRs to connect to Cloud SQL instance. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_backup_configuration\"\u003e\u003c/a\u003e [backup\\_configuration](#input\\_backup\\_configuration) | The backup\\_configuration subblock for the database setings | \u003cpre\u003elist(object({\u003cbr\u003e    enabled          = bool\u003cbr\u003e    start_time       = string\u003cbr\u003e    location         = string\u003cbr\u003e    retained_backups = number\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_cert_common_name\"\u003e\u003c/a\u003e [cert\\_common\\_name](#input\\_cert\\_common\\_name) | Certificate Common Name. | `string` | n/a | yes |\n| \u003ca name=\"input_database_version\"\u003e\u003c/a\u003e [database\\_version](#input\\_database\\_version) | Database type and version. Supported values = {MYSQL\\_5\\_6, MYSQL\\_5\\_7, MYSQL\\_8\\_0, POSTGRES\\_9\\_6,POSTGRES\\_10, POSTGRES\\_11, POSTGRES\\_12, POSTGRES\\_13, ...}. See {Instance settings documentation} | `string` | n/a | yes |\n| \u003ca name=\"input_db_name\"\u003e\u003c/a\u003e [db\\_name](#input\\_db\\_name) | Full name of the SQL database. | `string` | n/a | yes |\n| \u003ca name=\"input_deletion_protection\"\u003e\u003c/a\u003e [deletion\\_protection](#input\\_deletion\\_protection) | If set to true, you protect an instance from being deleted. | `bool` | `true` | no |\n| \u003ca name=\"input_disk_autoresize\"\u003e\u003c/a\u003e [disk\\_autoresize](#input\\_disk\\_autoresize) | Whether if the disk can grow when more space is needed. If disk\\_autoresize=true do not set disk\\_size as terraform apply would try to set the disk\\_size | `bool` | `true` | no |\n| \u003ca name=\"input_disk_type\"\u003e\u003c/a\u003e [disk\\_type](#input\\_disk\\_type) | Type of disk used on the CloudSQL instance VM | `string` | `\"PD_SSD\"` | no |\n| \u003ca name=\"input_instance_name\"\u003e\u003c/a\u003e [instance\\_name](#input\\_instance\\_name) | Full name of the SQL instance. | `string` | n/a | yes |\n| \u003ca name=\"input_maintenance_window\"\u003e\u003c/a\u003e [maintenance\\_window](#input\\_maintenance\\_window) | Maintenance window to update/patch the VM. It can be rebooted during this maintenance window | \u003cpre\u003elist(object({\u003cbr\u003e    day          = number\u003cbr\u003e    hour         = number\u003cbr\u003e    update_track = string\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_module_depends_on\"\u003e\u003c/a\u003e [module\\_depends\\_on](#input\\_module\\_depends\\_on) | n/a | `any` | `null` | no |\n| \u003ca name=\"input_network\"\u003e\u003c/a\u003e [network](#input\\_network) | Self link of the VPC network | `string` | n/a | yes |\n| \u003ca name=\"input_public_ip\"\u003e\u003c/a\u003e [public\\_ip](#input\\_public\\_ip) | assign a public IP to this CloudSQL instance. Attention: you need Security approval to give a public IP to your CloudSQL instance. | `bool` | `false` | no |\n| \u003ca name=\"input_region\"\u003e\u003c/a\u003e [region](#input\\_region) | The region to host the resources in. | `string` | `\"europe-west1\"` | no |\n| \u003ca name=\"input_require_ssl\"\u003e\u003c/a\u003e [require\\_ssl](#input\\_require\\_ssl) | If require SSL, the connection port will be 3307, otherwise 3306. | `bool` | `true` | no |\n| \u003ca name=\"input_tier\"\u003e\u003c/a\u003e [tier](#input\\_tier) | CloudSQL instance machine type (service tier). See {Instance settings documentation} | `string` | n/a | yes |\n| \u003ca name=\"input_user_host\"\u003e\u003c/a\u003e [user\\_host](#input\\_user\\_host) | The host the user can connect from. This is only supported for MySQL instances. Don't set this field for PostgreSQL instances. Can be an IP address, or % to allow any host. Changing this forces a new resource to be created. | `string` | `null` | no |\n| \u003ca name=\"input_user_name\"\u003e\u003c/a\u003e [user\\_name](#input\\_user\\_name) | User name. | `string` | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_connection_name\"\u003e\u003c/a\u003e [connection\\_name](#output\\_connection\\_name) | Cloud SQL connection name |\n| \u003ca name=\"output_database_name\"\u003e\u003c/a\u003e [database\\_name](#output\\_database\\_name) | Cloud SQL Database name |\n| \u003ca name=\"output_instance_connection_name\"\u003e\u003c/a\u003e [instance\\_connection\\_name](#output\\_instance\\_connection\\_name) | The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy. |\n| \u003ca name=\"output_instance_ip_address\"\u003e\u003c/a\u003e [instance\\_ip\\_address](#output\\_instance\\_ip\\_address) | The IPv4 address assigned to the database instance. |\n| \u003ca name=\"output_instance_ip_address_type\"\u003e\u003c/a\u003e [instance\\_ip\\_address\\_type](#output\\_instance\\_ip\\_address\\_type) | The type of IP address assigned to this instance. { PRIMARY \\| OUTGOING \\| PRIVATE }. This module handles with PRIVATE only |\n| \u003ca name=\"output_instance_name\"\u003e\u003c/a\u003e [instance\\_name](#output\\_instance\\_name) | Cloud SQL Database instance name |\n| \u003ca name=\"output_secret_manager_cloudsql_client_cert_secret_id\"\u003e\u003c/a\u003e [secret\\_manager\\_cloudsql\\_client\\_cert\\_secret\\_id](#output\\_secret\\_manager\\_cloudsql\\_client\\_cert\\_secret\\_id) | Secret manager id path where the CloudSQL client certificate secret is stored |\n| \u003ca name=\"output_secret_manager_cloudsql_user_secret_id\"\u003e\u003c/a\u003e [secret\\_manager\\_cloudsql\\_user\\_secret\\_id](#output\\_secret\\_manager\\_cloudsql\\_user\\_secret\\_id) | Secret manager id where the CloudSQL user name/password secret is stored |\n\u003c!-- END_TF_DOCS --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonpyutaika%2Fterraform-gcp-cloud-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonpyutaika%2Fterraform-gcp-cloud-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonpyutaika%2Fterraform-gcp-cloud-sql/lists"}