{"id":19889554,"url":"https://github.com/tsmx/gcp-get-env","last_synced_at":"2026-05-15T14:03:17.191Z","repository":{"id":189227415,"uuid":"680289896","full_name":"tsmx/gcp-get-env","owner":"tsmx","description":"Simple retrieving of Google Cloud Platform (GCP) provided default process.env variables in cloud functions (gen1 and gen2) and app engine for Node.js 16, 18 and 20.","archived":false,"fork":false,"pushed_at":"2026-05-06T20:39:50.000Z","size":501,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-06T22:32:59.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tsmx.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-18T20:17:20.000Z","updated_at":"2026-05-06T20:39:54.000Z","dependencies_parsed_at":"2026-03-04T18:01:58.354Z","dependency_job_id":null,"html_url":"https://github.com/tsmx/gcp-get-env","commit_stats":null,"previous_names":["tsmx/gcp-get-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsmx/gcp-get-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fgcp-get-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fgcp-get-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fgcp-get-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fgcp-get-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsmx","download_url":"https://codeload.github.com/tsmx/gcp-get-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fgcp-get-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":[],"created_at":"2024-11-12T18:10:43.617Z","updated_at":"2026-05-15T14:03:17.155Z","avatar_url":"https://github.com/tsmx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-get-env\n\n\u003e Providing a simple way to retrieve the default `process.env` variables provided by GCP for Node.js [cloud functions](https://cloud.google.com/functions) and [app engine](https://cloud.google.com/appengine) services.\n\nThis project contains a simple function/service for retrieving the default `proces.env` variables provided by Google Cloud Platform (GCP) in Node.js for the following services:\n\n- App Engine\n- Cloud Functions (Gen1 \u0026 Gen2)\n\nCurrently, the followoing Node.js runtimes are supported:\n\n- Node.js 16\n- Node.js 18\n- Node.js 20\n\n## Prerequisites\n\nTo follow, along, you'll need:\n\n- An active GCP account\n- The `gcloud` CLI installed and configured. See [here](https://cloud.google.com/sdk/docs/install) for help.\n\nAlternatively, use the [endpoints provided by this project](#provided-endpoints) to get the environment variables.\n\n## Deploy and run\n\nThe project ships with `npm run` scripts to deploy publicly available endpoints in cloud functions and app engine to retrieve the default environment variables by calling with a simple HTTP `GET` in your browser.\n\n|script name|deploys|function/service name|\n|-----------|-------|---------------------|\n|`deploy-node16-func`|cloud function with runtime Node.js 16 Gen 1|`node16-get-env`|\n|`deploy-node16-func-gen2`|cloud function with runtime Node.js 16 Gen 2|`node16-gen2-get-env`|\n|`deploy-node18-func`|cloud function with runtime Node.js 18 Gen 1|`node18-get-env`|\n|`deploy-node18-func-gen2`|cloud function with runtime Node.js 18 Gen 2|`node18-gen2-get-env`|\n|`deploy-node20-func`|cloud function with runtime Node.js 20 Gen 1|`node20-get-env`|\n|`deploy-node20-func-gen2`|cloud function with runtime Node.js 20 Gen 2|`node20-gen2-get-env`|\n|`deploy-node16-gae`|app engine service  with runtime Node.js 16|`node16-get-env`|\n|`deploy-node18-gae`|app engine service  with runtime Node.js 18|`node18-get-env`|\n|`deploy-node20-gae`|app engine service  with runtime Node.js 20|`node20-get-env`|\n\nThe output of the gcloud command will show you the URL of the deployed function/service to be called.\n\nTo help you being protected from unwanted expenses (keep in mind the endpoints will be **publicly available**!), the deployments will use an maxConcurrency of 1 for the cloud functions and the smallest instance type F1 with a count of 1 for the app engine services.\n\n## Provided endpoints\n\nIf you don't want to install in your own GCP account, feel free to call the provided endpoints to get the default environment variables for different services and runtimes*.\n\n|GCP service|Runtime|Environment variables|\n|-----------|-------|---------------------|\n|Cloud Functions|Node.js 16 Gen1| [Get env vars](https://europe-west3-tsmx-gcp.cloudfunctions.net/node16-get-env)|\n|Cloud Functions|Node.js 16 Gen2| [Get env vars](https://europe-west3-tsmx-gcp.cloudfunctions.net/node16-gen2-get-env)|\n|Cloud Functions|Node.js 18 Gen1| [Get env vars](https://europe-west3-tsmx-gcp.cloudfunctions.net/node18-get-env)|\n|Cloud Functions|Node.js 18 Gen2| [Get env vars](https://europe-west3-tsmx-gcp.cloudfunctions.net/node18-gen2-get-env)|\n|Cloud Functions|Node.js 20 Gen1| [Get env vars](https://europe-west3-tsmx-gcp.cloudfunctions.net/node20-get-env)|\n|Cloud Functions|Node.js 20 Gen2| [Get env vars](https://europe-west3-tsmx-gcp.cloudfunctions.net/node20-gen2-get-env)|\n|App Engine|Node.js 16| [Get env vars](https://node16-get-env-dot-tsmx-gcp.ey.r.appspot.com/)|\n|App Engine|Node.js 18| [Get env vars](https://node18-get-env-dot-tsmx-gcp.ey.r.appspot.com/)|\n|App Engine|Node.js 20| [Get env vars](https://node20-get-env-dot-tsmx-gcp.ey.r.appspot.com/)|\n\nNote that the environment variables may contain entries specific to your account/project, like `GOOGLE_CLOUD_PROJECT`.\n\n*Without any warranty/guarantee and subject to discontinuation of services.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmx%2Fgcp-get-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsmx%2Fgcp-get-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmx%2Fgcp-get-env/lists"}