{"id":20113322,"url":"https://github.com/cloudacademy/gcp-vcf-env","last_synced_at":"2025-05-06T12:30:28.783Z","repository":{"id":77791506,"uuid":"193139385","full_name":"cloudacademy/gcp-vcf-env","owner":"cloudacademy","description":"VS Code environment for working with GCP VCFs","archived":false,"fork":false,"pushed_at":"2023-11-28T06:53:41.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-09T12:11:40.015Z","etag":null,"topics":["gcp","vscode"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cloudacademy.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}},"created_at":"2019-06-21T17:51:46.000Z","updated_at":"2023-02-18T00:45:38.000Z","dependencies_parsed_at":"2023-11-28T07:48:22.792Z","dependency_job_id":null,"html_url":"https://github.com/cloudacademy/gcp-vcf-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fgcp-vcf-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fgcp-vcf-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fgcp-vcf-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fgcp-vcf-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudacademy","download_url":"https://codeload.github.com/cloudacademy/gcp-vcf-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252683361,"owners_count":21788022,"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","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","vscode"],"created_at":"2024-11-13T18:24:01.105Z","updated_at":"2025-05-06T12:30:28.500Z","avatar_url":"https://github.com/cloudacademy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-vcf-env\n\nEnvrionment for working with GCP VCFs\n\n## Getting started\n\n1. Ensure Python 3.6+ is installed on your system\n\n1. Create a GCP project\n\n1. Create a service account for running the VCFs\n\n1. Create a JSON key for the service account\n\n1. Add the service account to the project _Owner_ or _Viewer_ role\n\n1. In `.vscode/launch.json` fill in the `CREDENTIAL_KEY`, `CREDENTIAL_ID` and `PROJECT_ID` for the service account. Be sure to escape the JSON. Avoid using online tools to do this due to the sensitive nature of what you are escaping. The resulting `env` map will resemble:\n    ```json\n    {\n        \"CREDENTIAL_ID\"  : \"your-service-account@your-project.iam.gserviceaccount.com\",\n        \"CREDENTIAL_KEY\": \"{\\\"type\\\":\\\"service_account\\\",\\\"project_id\\\":\\\"your-project\\\",\\\"private_key_id\\\":\\\"...}\",\n        \"PROJECT_ID\"     : \"your-project\"\n    }\n    ```\n\n1. In `init.sh` (Mac/Linux)/`init.ps1` (Windows) replace YOUR_BITBUCKET_USER with the name of your Cloud Academy BitBucket user\n\n1. Run `init.sh` (Mac/Linux)/`init.ps1` (Windows) to set up the environment\n\n    - Enter your Cloud Academy BitBucket password/[app password](https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html) when prompted.\n\n1. Add the following line to `.gitignore` to avoid committing any sensitive information:\n\n    ```\n    .vscode/\n    ```\n\n1. Develop and debug functions using the `Current File (Integrated Terminal)` configuration (press F5 with the file open)\n\n    If you see any errors with importing modules, ensure VS Code is configured to use the venv Python by checking the lower-left status bar in VS Code:\n\n    ![venv Python in VS Code status bar](https://user-images.githubusercontent.com/3911650/153683320-b656c3c0-b268-4927-a186-81a301517d49.png)\n\n## Update Dependencies\n\n1. Run `init.sh` (Mac/Linux)/`init.ps1` (Windows) to set up the virtual environment again. (only the `venv/` directory is impacted by this operation)\n\n## References\n\n- [Google APIs Explorer](https://developers.google.com/apis-explorer)\n- [OAuth2 Scopes for Google](https://developers.google.com/identity/protocols/googlescopes)\n- [GCP Python Docs Samples](https://github.com/GoogleCloudPlatform/python-docs-samples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacademy%2Fgcp-vcf-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudacademy%2Fgcp-vcf-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacademy%2Fgcp-vcf-env/lists"}