{"id":20483648,"url":"https://github.com/cbuschka/gcp-examples","last_synced_at":"2026-05-10T15:40:08.712Z","repository":{"id":95275723,"uuid":"347597913","full_name":"cbuschka/gcp-examples","owner":"cbuschka","description":"Example solutions with Terraform and Java on GCP","archived":false,"fork":false,"pushed_at":"2021-10-13T07:13:27.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T16:17:17.201Z","etag":null,"topics":["gcp","gcs","java","pubsub","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbuschka.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2021-03-14T09:49:01.000Z","updated_at":"2021-10-13T07:15:52.000Z","dependencies_parsed_at":"2023-04-13T00:04:03.307Z","dependency_job_id":null,"html_url":"https://github.com/cbuschka/gcp-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cbuschka/gcp-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fgcp-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fgcp-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fgcp-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fgcp-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbuschka","download_url":"https://codeload.github.com/cbuschka/gcp-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fgcp-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32862086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"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":["gcp","gcs","java","pubsub","terraform"],"created_at":"2024-11-15T16:18:14.418Z","updated_at":"2026-05-10T15:40:08.670Z","avatar_url":"https://github.com/cbuschka.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCP Examples\n\n### Examples on GCP with terraform and Java\n\n## Prerequisites\n\n* bash\n* GNU make\n* terraform with version .terraform-version or better tfvm (https://github.com/cbuschka/tfvm)\n* Java 11\n* gcloud sdk\n\n## Setup\n\n### Configure current project\n\n```\ngcloud config set project your-gcp-project-identifier\n```\n\ncp settings.tfvars.json.example to settings.tfvars.json and adjust accordingly.\n\n### Login to gcp\n\n```\ngcloud auth login\ngcloud auth application-default login\ngcloud auth configure-docker \u003cyour region from settings.tfvars.json\u003e-docker.pkg.dev\n```\n\n## Example solutions\n\n| example          | description |\n|------------------|-------------|\n| [gcs event to pubsub](./gcs-event-to-pubsub) | send notification event via eventarc to pubsub topic, when a file is uploaded into a gcs bucket |\n| [pubsub message to cloudrun](./pubsub-to-cloudrun) (ps2cr) | push pubsub messages via subscription to cloudrun with auth enabled |\n| [global load balancer to cloudrun](./glb-to-cloudrun) (glb2cr) | global load balancer on port 80 with path mapping to cloud run |\n| [gcs and pubsub access via pure http](./pure-http-gcp) | download file from gcs, send/receive pubsub messages, login via oauth with serviceaccount key, all pure http without gcp sdk - just an experiment (hint: there is an official [google api client for java](https://developers.google.com/api-client-library/java) with compatibility down to jdk7) |\n| [cloud function from jar](./cloud-function-from-jar) (cffj) | java 11 cloud function deployed as jar, not as source |\n| [standalone-pubsub-consumer](./standalone-pubsub-consumer) (spsc) | a standalone polling pubsub consumer |\n| [serviceaccount-impersonation](./serviceaccount-impersonation) (saimp) | serviceaccount impersonation via terraform |\n| [container-on-vm-instance-in-vpc](./container-on-vm-instance-in-vpc) (covm) | gce vm instance in vpc, running docker container with ports bound to host, private ip only, access via iap |\n\n## Useful links\n\n* [Google Cloud Examples for Java](https://github.com/googleapis/google-cloud-java)\n\n## License\n\n[MIT-0](./license.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuschka%2Fgcp-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbuschka%2Fgcp-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuschka%2Fgcp-examples/lists"}