{"id":19030563,"url":"https://github.com/jeffbryner/gcp-cloud-function-kickstarter","last_synced_at":"2025-10-11T06:37:39.832Z","repository":{"id":139750505,"uuid":"425387719","full_name":"jeffbryner/gcp-cloud-function-kickstarter","owner":"jeffbryner","description":"bootstrap your way into a gcp cloud function","archived":false,"fork":false,"pushed_at":"2022-04-11T00:08:29.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T20:16:07.612Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffbryner.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-11-07T01:32:57.000Z","updated_at":"2021-11-28T21:09:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"47d906af-007d-4337-9a9e-acaec8abab61","html_url":"https://github.com/jeffbryner/gcp-cloud-function-kickstarter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeffbryner/gcp-cloud-function-kickstarter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffbryner%2Fgcp-cloud-function-kickstarter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffbryner%2Fgcp-cloud-function-kickstarter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffbryner%2Fgcp-cloud-function-kickstarter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffbryner%2Fgcp-cloud-function-kickstarter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffbryner","download_url":"https://codeload.github.com/jeffbryner/gcp-cloud-function-kickstarter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffbryner%2Fgcp-cloud-function-kickstarter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006452,"owners_count":26084107,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2024-11-08T21:18:33.355Z","updated_at":"2025-10-11T06:37:39.817Z","avatar_url":"https://github.com/jeffbryner.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Why?\nWhile serverless.com is a great way to boot up lambas and cloud functions, it's not always compatible with terraform ci/cd pipelines.\n\nThis project is meant to be a terraform ci/cd friendly way to bootstrap your way into a gcp cloud function with ease!\n\n## Assumptions\n\n- You have an existing GCP project\n- You'd like to add a python based cloud function\n- You'd like a simple way to add it that's compatible with a terraform-based ci/cd pipeline\n\n\n## How?\n\nCopy the terraform.tfvars.example as terraform.tfvars, retrieve the project ID for your target GCP project/environment and add it to the file.\n\nIn the directory where you stored main.tf:\n- terraform init\n- Import the target project into terraform ala: terraform import google_project.target prj-sample-project-id-goes-here\n- Edit terraform.tfvars to match the basic project elements (name, billing accoujnt, id)\n- Make a copy of backend.tf.example as backend.tf with a proper bucket name, etc if you'd like to store terraform state in GCP and run terraform init --force-copy to copy state to the bucket.\n- A terraform apply should now create the zip file for the main.py function, upload it to a bucket, create a cloud function and emit the url for you to call it.\n- Voila! A basic kickstart.\n\n\n## Next steps\nThis pattern is a simple 'zip and deploy' and includes sample dependencies on numpy and pandas just to show how to include libraries in your requirements.txt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffbryner%2Fgcp-cloud-function-kickstarter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffbryner%2Fgcp-cloud-function-kickstarter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffbryner%2Fgcp-cloud-function-kickstarter/lists"}