{"id":23161336,"url":"https://github.com/qoyyuum/free-gcp","last_synced_at":"2025-04-04T19:29:20.998Z","repository":{"id":69637122,"uuid":"312530915","full_name":"Qoyyuum/Free-GCP","owner":"Qoyyuum","description":"Easily create a free GCP VM Server as and when needed with Terraform","archived":false,"fork":false,"pushed_at":"2022-01-04T17:38:41.000Z","size":2,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-10T04:29:45.703Z","etag":null,"topics":["free","gcp","google-cloud-platform","server","terraform"],"latest_commit_sha":null,"homepage":"","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/Qoyyuum.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":"2020-11-13T09:30:09.000Z","updated_at":"2022-01-04T17:38:44.000Z","dependencies_parsed_at":"2023-07-21T18:39:12.317Z","dependency_job_id":null,"html_url":"https://github.com/Qoyyuum/Free-GCP","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/Qoyyuum%2FFree-GCP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qoyyuum%2FFree-GCP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qoyyuum%2FFree-GCP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qoyyuum%2FFree-GCP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qoyyuum","download_url":"https://codeload.github.com/Qoyyuum/Free-GCP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247237271,"owners_count":20906266,"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":["free","gcp","google-cloud-platform","server","terraform"],"created_at":"2024-12-17T23:13:55.806Z","updated_at":"2025-04-04T19:29:20.991Z","avatar_url":"https://github.com/Qoyyuum.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :earth_asia: Terraform a (Free) Micro Google VPS\r\n\r\n## Pre-requisites\r\n\r\n* Must have an active account on [Google Cloud Platform](https://console.cloud.google.com/) (Sign up or Sign in)\r\n* Enable [Compute Engine](https://console.cloud.google.com/compute) after creating a project.\r\n* Get Service Account Key - Navigate to the [Service Accounts page](https://console.cloud.google.com/iam-admin/serviceaccounts). Click \"Create Service Account\". Fill in the blanks, click \"Create\". Set Role as \"Project \u003e Editor\", click \"Done\". Click the newly created account's Actions (far right) menu icon and select \"Create Key\". Set Key Type as \"JSON\" and click \"Create\". Once prompted for the JSON file to save, save it in this cloned repo on your machine.\r\n* Install [Terraform v0.13.5 or later](https://www.terraform.io/downloads.html) - it's also available via [Chocolatey](https://chocolatey.org/packages/terraform)\r\n\r\n## Setup\r\n\r\nThe `main.tf` file has a couple of places that needs an update before proceeding to *Usage* section.\r\n\r\nReplace the following:\r\n\r\n* **{PROJECTID}** - Obtainable after creating a project.\r\n\r\n* **{CREDENTIALS}** - Obtainable after creating the service account\r\n\r\n## Usage\r\n\r\n### Test\r\n\r\nCheck if the file will load properly with `terraform plan`\r\n\r\n### Deployment\r\n\r\n`terraform apply`, then type `yes` when asked to approve the deployment.\r\n\r\n### Destroy\r\n\r\nWhen done for the day or no longer need a VM running, `terraform destroy`, then `yes` when prompted\r\n\r\n## Further Reference\r\n\r\n[Getting Started](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started) with Google Provider\r\n\r\nMore about Terraform [Google Compute Instance](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance)\r\n\r\n## Fair Warning\r\n\r\nYou may be charged for exceeding beyond Google's Free Tier. Please read and understand further at their official docs as time passes by. https://cloud.google.com/free/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoyyuum%2Ffree-gcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqoyyuum%2Ffree-gcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoyyuum%2Ffree-gcp/lists"}