{"id":49547590,"url":"https://github.com/subhamay-bhattacharyya-tf/terraform-google-cloud-sql-instance","last_synced_at":"2026-05-02T20:04:39.982Z","repository":{"id":349597758,"uuid":"1193691051","full_name":"subhamay-bhattacharyya-tf/terraform-google-cloud-sql-instance","owner":"subhamay-bhattacharyya-tf","description":"🏗️ Terraform module to provision and manage Cloud SQL instances, including engine configuration, HA, backups, networking, and security settings.","archived":false,"fork":false,"pushed_at":"2026-04-06T17:20:42.000Z","size":181,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T19:07:38.811Z","etag":null,"topics":["cloud-sql","cloud-sql-instance","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subhamay-bhattacharyya-tf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-27T13:36:37.000Z","updated_at":"2026-04-01T18:32:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/subhamay-bhattacharyya-tf/terraform-google-cloud-sql-instance","commit_stats":null,"previous_names":["subhamay-bhattacharyya-tf/terraform-google-cloud-sql-instance"],"tags_count":null,"template":false,"template_full_name":"subhamay-bhattacharyya-tf/terraform-google-module-template","purl":"pkg:github/subhamay-bhattacharyya-tf/terraform-google-cloud-sql-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subhamay-bhattacharyya-tf","download_url":"https://codeload.github.com/subhamay-bhattacharyya-tf/terraform-google-cloud-sql-instance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32547653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","cloud-sql-instance","terraform","terraform-module"],"created_at":"2026-05-02T20:04:39.887Z","updated_at":"2026-05-02T20:04:39.976Z","avatar_url":"https://github.com/subhamay-bhattacharyya-tf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Module for GCS Bucket\n\n![Release](https://github.com/subhamay-bhattacharyya-tf/terraform-google-module-template/actions/workflows/ci.yaml/badge.svg)\u0026nbsp;![GCP](https://img.shields.io/badge/GCP-4285F4?logo=googlecloud\u0026logoColor=white)\u0026nbsp;![Commit Activity](https://img.shields.io/github/commit-activity/t/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![Last Commit](https://img.shields.io/github/last-commit/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![Release Date](https://img.shields.io/github/release-date/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![Repo Size](https://img.shields.io/github/repo-size/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![File Count](https://img.shields.io/github/directory-file-count/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![Issues](https://img.shields.io/github/issues/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![Top Language](https://img.shields.io/github/languages/top/subhamay-bhattacharyya-tf/terraform-google-module-template)\u0026nbsp;![Built with Claude Code](https://img.shields.io/badge/Built%20with-Claude%20Code-623CE4?logo=anthropic\u0026logoColor=white)\u0026nbsp;![Custom Endpoint](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/bsubhamay/476e6e7583432e960e6de16d5223e6a3/raw/terraform-google-module-template.json?)\n\nA Terraform module for creating and managing a **Google Cloud Storage (GCS) bucket** on GCP.\n\n## Overview\n\nThis module provisions a single `google_storage_bucket` resource via the `terraform-google-module-template` module. It accepts a small set of flat input variables and assembles the required `gcs_config` object, enforcing `uniform_bucket_level_access = true` and `public_access_prevention = \"enforced\"` by default.\n\n## Requirements\n\n| Requirement | Version |\n|---|---|\n| Terraform | \u003e= 1.3.0 |\n| Google Provider | \u003e= 7.23.0 |\n\n## Usage\n\n```hcl\nmodule \"gcs_bucket\" {\n  source = \"github.com/subhamay-bhattacharyya-tf/terraform-google-module-template\"\n\n  bucket_name = \"my-portfolio-bucket\"\n  project_id  = \"portfolio-site\"\n  location    = \"US\"\n  environment = \"prod\"\n}\n```\n\n## Input Variables\n\n| Name | Description | Type | Default | Required |\n|---|---|---|---|---|\n| `bucket_name` | Name of the GCS bucket | `string` | — | yes |\n| `project_id` | GCP project ID | `string` | `\"portfolio-site\"` | no |\n| `region` | GCP region | `string` | `\"us-central1\"` | no |\n| `location` | GCS bucket location | `string` | `\"US\"` | no |\n| `storage_class` | Storage class | `string` | `\"STANDARD\"` | no |\n| `force_destroy` | Force-destroy bucket on destroy | `bool` | `false` | no |\n| `versioning` | Enable object versioning | `bool` | `false` | no |\n| `labels` | Additional labels | `map(string)` | `{}` | no |\n| `project` | Project label value | `string` | `\"portfolio-site\"` | no |\n| `environment` | Environment label value | `string` | `\"dev\"` | no |\n\n## Outputs\n\n| Name | Description |\n|---|---|\n| `bucket_id` | The ID of the GCS bucket |\n| `bucket_name` | The name of the GCS bucket |\n| `bucket_project` | The project ID where the bucket is created |\n| `bucket_location` | The location of the GCS bucket |\n| `bucket_url` | The URL of the GCS bucket |\n| `bucket_self_link` | The self link of the GCS bucket resource |\n| `bucket_storage_class` | The storage class of the GCS bucket |\n| `bucket_force_destroy` | Whether force_destroy is enabled |\n\n## CI / Workload Identity Federation Setup\n\nThe Terratest job authenticates to GCP via [Workload Identity Federation](https://cloud.google.com/iam/docs/workload-identity-federation) (service account impersonation). If the job fails with `Permission 'iam.serviceAccounts.getAccessToken' denied`, grant the WIF pool principal the required IAM binding:\n\n```bash\ngcloud iam service-accounts add-iam-policy-binding \\\n    \"sa-17-cloud-storage@prj-17-cloud-storage-16748.iam.gserviceaccount.com\" \\\n    --project=\"prj-17-cloud-storage-16748\" \\\n    --role=\"roles/iam.workloadIdentityUser\" \\\n    --member=\"principalSet://iam.googleapis.com/projects/578842011545/locations/global/workloadIdentityPools/github-actions/attribute.repository/subhamay-bhattacharyya-tf/terraform-google-module-template\"\n```\n\nThe three repository variables required by the CI workflow are:\n\n| Variable | Description |\n| --- | --- |\n| `GCP_PROJECT_ID` | GCP project ID passed as `GOOGLE_CLOUD_PROJECT` to Terratest |\n| `GCP_WORKLOAD_IDENTITY_PROVIDER` | Full WIF provider resource name |\n| `GCP_SERVICE_ACCOUNT` | Service account email to impersonate |\n\n## License\n\nApache 2.0 — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhamay-bhattacharyya-tf%2Fterraform-google-cloud-sql-instance/lists"}