{"id":23974643,"url":"https://github.com/kiwamizamurai/cloudrun-cloudsql-simple","last_synced_at":"2026-02-05T03:35:53.380Z","repository":{"id":236875321,"uuid":"793329965","full_name":"kiwamizamurai/cloudrun-cloudsql-simple","owner":"kiwamizamurai","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-10T03:10:24.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T09:43:06.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiwamizamurai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":"kiwamizamurai","buy_me_a_coffee":"kiwamizamurai","open_collective":"kiwamizamurai","ko_fi":"kiwamizamurai","patreon":"kiwamizamurai","liberapay":"kiwamizamurai"}},"created_at":"2024-04-29T02:33:26.000Z","updated_at":"2024-07-10T03:10:27.000Z","dependencies_parsed_at":"2024-04-29T03:40:48.774Z","dependency_job_id":"63110306-11b0-4008-af35-bd1da94145af","html_url":"https://github.com/kiwamizamurai/cloudrun-cloudsql-simple","commit_stats":null,"previous_names":["kiwamizamurai/cloudrun-cloudsql-simple"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kiwamizamurai/cloudrun-cloudsql-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwamizamurai%2Fcloudrun-cloudsql-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwamizamurai%2Fcloudrun-cloudsql-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwamizamurai%2Fcloudrun-cloudsql-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwamizamurai%2Fcloudrun-cloudsql-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiwamizamurai","download_url":"https://codeload.github.com/kiwamizamurai/cloudrun-cloudsql-simple/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwamizamurai%2Fcloudrun-cloudsql-simple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29109304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T03:27:05.906Z","status":"ssl_error","status_checked_at":"2026-02-05T03:26:43.416Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2025-01-07T05:47:59.895Z","updated_at":"2026-02-05T03:35:53.367Z","avatar_url":"https://github.com/kiwamizamurai.png","language":"HCL","readme":"# Tools\n\n```bash\n❯ brew install tfenv\n❯ tfenv --version\ntfenv 3.0.0\n❯ tfenv use 1.7.3\n❯ terraform --version\nTerraform v1.7.3\non darwin_amd64\n❯ infracost --version\nInfracost v0.10.33\n\n❯ brew install --cask google-cloud-sdk\n❯ gcloud --version\nGoogle Cloud SDK 464.0.0\nbq 2.0.101\ncore 2024.02.09\ngcloud-crc32c 1.0.0\ngsutil 5.27\n\n❯ gcloud config configurations create FUGA\n❯ gcloud config set project HOGE\n❯ gcloud config set account YOUR_EMAIL@DOMAIN\n# https://blog.g-gen.co.jp/entry/difference-of-gloud-auth-commands\n# printf %s 'SELECT * from credentials;' | sqlite3 ~/.config/gcloud/credentials.db\n❯ gcloud auth login\n❯ gcloud config set compute/zone asia-northeast1-a\n❯ gcloud config set compute/region asia-northeast1\n```\n\n# Architecture\n\n![architecture](./terraform/.excalidraw.png)\n\n\n# App\n\n```shell\n❯ gcloud run services proxy $(terraform output -raw cloudrun_name)\n...\nPlease enter numeric choice or text value (must exactly match list item):  4\n\nTo make this the default region, run `gcloud config set run/region asia-northeast1`.\n\nProxying to Cloud Run service [xxxxxx] in project [xxxxx] region [asia-northeast1]\nhttp://127.0.0.1:8080 proxies to https://XXXXXXXXXXXXX.a.run.app\n```\n\nMore simple way\n\n```shell\n❯ curl -I -H \"Authorization: Bearer $(gcloud auth print-identity-token)\" $(terraform output -raw cloudrun_uri )\nHTTP/2 200\ncontent-type: text/html; charset=utf-8\ndate: Mon, 26 Feb 2024 06:19:08 GMT\nserver: Google Frontend\nalt-svc: h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000\n```\n\n# DB\n\n- Identity-Aware Proxy / bastion (private GCE) / Cloud SQL Auth Proxy\n- TablePlus\n\n```bash\n❯ gcloud compute start-iap-tunnel bastion 5432 --local-host-port=localhost:15432 --zone=asia-northeast1-a\n\nTesting if tunnel connection works.\nListening on port [15432].\n```\n","funding_links":["https://github.com/sponsors/kiwamizamurai","https://buymeacoffee.com/kiwamizamurai","https://opencollective.com/kiwamizamurai","https://ko-fi.com/kiwamizamurai","https://patreon.com/kiwamizamurai","https://liberapay.com/kiwamizamurai"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwamizamurai%2Fcloudrun-cloudsql-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiwamizamurai%2Fcloudrun-cloudsql-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwamizamurai%2Fcloudrun-cloudsql-simple/lists"}