{"id":49339771,"url":"https://github.com/citadel-cloud-management/terraform-gcp-cloud-sql","last_synced_at":"2026-04-27T03:04:32.787Z","repository":{"id":342861676,"uuid":"1175440670","full_name":"Citadel-Cloud-Management/terraform-gcp-cloud-sql","owner":"Citadel-Cloud-Management","description":"Terraform module for Google Cloud SQL with PostgreSQL, MySQL, high availability, read replicas, and backups","archived":false,"fork":false,"pushed_at":"2026-04-11T22:19:02.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T00:27:32.042Z","etag":null,"topics":["cloud-sql","database","gcp","google-cloud","infrastructure-as-code","mysql","postgresql","production-ready","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://citadel-cloud-management.github.io/terraform-gcp-cloud-sql/","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Citadel-Cloud-Management.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-07T18:03:21.000Z","updated_at":"2026-04-11T22:40:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Citadel-Cloud-Management/terraform-gcp-cloud-sql","commit_stats":null,"previous_names":["kogunlowo123/terraform-gcp-cloud-sql"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Citadel-Cloud-Management/terraform-gcp-cloud-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citadel-Cloud-Management%2Fterraform-gcp-cloud-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citadel-Cloud-Management%2Fterraform-gcp-cloud-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citadel-Cloud-Management%2Fterraform-gcp-cloud-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citadel-Cloud-Management%2Fterraform-gcp-cloud-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Citadel-Cloud-Management","download_url":"https://codeload.github.com/Citadel-Cloud-Management/terraform-gcp-cloud-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citadel-Cloud-Management%2Fterraform-gcp-cloud-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32320688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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","database","gcp","google-cloud","infrastructure-as-code","mysql","postgresql","production-ready","terraform","terraform-module"],"created_at":"2026-04-27T03:04:14.543Z","updated_at":"2026-04-27T03:04:32.781Z","avatar_url":"https://github.com/Citadel-Cloud-Management.png","language":"HCL","readme":"![Terraform](https://img.shields.io/badge/Terraform-%3E%3D1.5-blueviolet?logo=terraform)\n![GCP](https://img.shields.io/badge/GCP-4285F4?logo=googlecloud\u0026logoColor=white)\n![License](https://img.shields.io/badge/License-MIT-green)\n![CI](https://img.shields.io/github/actions/workflow/status/kogunlowo123/terraform-gcp-cloud-sql/terraform-ci.yml?label=CI)\n![GitHub release](https://img.shields.io/github/v/release/kogunlowo123/terraform-gcp-cloud-sql)\n\n# Terraform GCP Cloud SQL\n\nTerraform module for deploying Cloud SQL instances on Google Cloud Platform with support for PostgreSQL and MySQL, high availability, read replicas, private IP networking, and automated backups.\n\n## Architecture\n\n```mermaid\ngraph TB\n    subgraph GCP[\"Google Cloud Platform\"]\n        style GCP fill:#e8f0fe,stroke:#4285f4,stroke-width:2px,color:#1a73e8\n\n        subgraph VPC[\"VPC Network\"]\n            style VPC fill:#e6f4ea,stroke:#34a853,stroke-width:2px,color:#137333\n            PSN[\"Private Service Networking\"]\n            GCA[\"Global Compute Address\"]\n            style PSN fill:#ceead6,stroke:#34a853,color:#137333\n            style GCA fill:#ceead6,stroke:#34a853,color:#137333\n        end\n\n        subgraph CloudSQL[\"Cloud SQL\"]\n            style CloudSQL fill:#fce8e6,stroke:#ea4335,stroke-width:2px,color:#c5221f\n            PRIMARY[\"Primary Instance\u003cbr/\u003eHA: Regional\"]\n            DB[\"Databases\"]\n            USR[\"Users\"]\n            style PRIMARY fill:#fad2cf,stroke:#ea4335,color:#c5221f\n            style DB fill:#fad2cf,stroke:#ea4335,color:#c5221f\n            style USR fill:#fad2cf,stroke:#ea4335,color:#c5221f\n        end\n\n        subgraph Replicas[\"Read Replicas\"]\n            style Replicas fill:#fef7e0,stroke:#fbbc04,stroke-width:2px,color:#e37400\n            R1[\"Replica 1\"]\n            R2[\"Replica 2\"]\n            style R1 fill:#feefc3,stroke:#fbbc04,color:#e37400\n            style R2 fill:#feefc3,stroke:#fbbc04,color:#e37400\n        end\n\n        subgraph Backup[\"Backup \u0026 Recovery\"]\n            style Backup fill:#f3e8fd,stroke:#a142f4,stroke-width:2px,color:#7627bb\n            BAK[\"Automated Backups\"]\n            PITR[\"Point-in-Time Recovery\"]\n            style BAK fill:#e9d5fc,stroke:#a142f4,color:#7627bb\n            style PITR fill:#e9d5fc,stroke:#a142f4,color:#7627bb\n        end\n    end\n\n    APP[\"Application\"] --\u003e|private IP| PSN\n    PSN --\u003e PRIMARY\n    GCA --\u003e PSN\n    PRIMARY --\u003e DB\n    PRIMARY --\u003e USR\n    PRIMARY --\u003e|replication| R1\n    PRIMARY --\u003e|replication| R2\n    PRIMARY --\u003e BAK\n    PRIMARY --\u003e PITR\n\n    style APP fill:#c8e6c9,stroke:#2e7d32,color:#1b5e20\n```\n\n## Features\n\n- Cloud SQL instances for PostgreSQL 15 and MySQL 8.0\n- High availability with REGIONAL availability type\n- Read replicas with independent sizing\n- Private IP via Private Service Networking\n- Automated backups with point-in-time recovery\n- Configurable maintenance windows\n- Query Insights for performance monitoring\n- Database flags for fine-grained tuning\n- Multiple databases and users per instance\n\n## Usage\n\n### Basic\n\n```hcl\nmodule \"cloud_sql\" {\n  source = \"github.com/kogunlowo123/terraform-gcp-cloud-sql\"\n\n  project_id       = \"my-gcp-project\"\n  instance_name    = \"my-postgres\"\n  database_version = \"POSTGRES_15\"\n\n  databases = {\n    \"myapp\" = {}\n  }\n\n  users = {\n    \"appuser\" = { password = \"change-me\" }\n  }\n}\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 1.5.0 |\n| google | \u003e= 5.10.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| project\\_id | The GCP project ID | `string` | n/a | yes |\n| instance\\_name | Cloud SQL instance name | `string` | n/a | yes |\n| database\\_version | Database version | `string` | `\"POSTGRES_15\"` | no |\n| tier | Machine tier | `string` | `\"db-f1-micro\"` | no |\n| availability\\_type | HA type (REGIONAL/ZONAL) | `string` | `\"ZONAL\"` | no |\n| enable\\_private\\_ip | Enable private IP | `bool` | `false` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| instance\\_name | Cloud SQL instance name |\n| instance\\_connection\\_name | Connection name |\n| private\\_ip\\_address | Private IP address |\n| public\\_ip\\_address | Public IP address |\n| read\\_replica\\_names | Read replica instance names |\n\n## License\n\nMIT Licensed. See [LICENSE](LICENSE) for full details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitadel-cloud-management%2Fterraform-gcp-cloud-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitadel-cloud-management%2Fterraform-gcp-cloud-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitadel-cloud-management%2Fterraform-gcp-cloud-sql/lists"}