{"id":15874680,"url":"https://github.com/juwit/terraform-gcp-lab","last_synced_at":"2026-01-11T02:28:09.241Z","repository":{"id":127210347,"uuid":"359403234","full_name":"juwit/terraform-gcp-lab","owner":"juwit","description":"⚗️ repository holding terraform modules for GCP","archived":false,"fork":false,"pushed_at":"2021-04-20T15:26:42.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:14:07.755Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juwit.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":"2021-04-19T09:33:02.000Z","updated_at":"2021-04-20T15:26:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"8767a386-670f-4a54-aa09-6101e19e8be9","html_url":"https://github.com/juwit/terraform-gcp-lab","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/juwit%2Fterraform-gcp-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Fterraform-gcp-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Fterraform-gcp-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Fterraform-gcp-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juwit","download_url":"https://codeload.github.com/juwit/terraform-gcp-lab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246725473,"owners_count":20823643,"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":[],"created_at":"2024-10-06T01:41:04.910Z","updated_at":"2025-04-01T23:21:47.971Z","avatar_url":"https://github.com/juwit.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform gcp lab\n\nThis repository holds various terraform modules I use to play with GCP.\n\nThe goal of this lab is to :\n\n* create a new GCP project\n* associate it to a billing account\n* create a new bucket in this project\n* create a new VM in this project, and configure it to write a file in the bucket\n* create a new VM template and an auto-scaling instance group using the template\n\n## pre-requisites : setting up a service account\n\nsee https://cloud.google.com/community/tutorials/managing-gcp-projects-with-terraform\n\nThe service account should be created in an \"Admin\" project, but must be granted organization-wide rights.\n\nThe \"Admin\" project should also have activated the Resource Manager API, and the Billing API:\n\n```\ngcloud services enable cloudresourcemanager.googleapis.com\ngcloud services enable cloudbilling.googleapis.com\ngcloud services enable iam.googleapis.com\n```\n\n### creation\n\nTerraform will need a service account for this to work.\n\nIn an \"Admin Project\", go to IAM \u003e Service Accounts\n\nCreate a \"terraform\" service account.\n\nCreate a key for this service account, and save it as a JSON file.\n\nCreate a env var pointing to this key :\n\n```\nexport GOOGLE_CREDENTIALS=terraform-admin-project-sa.json\n```\n\n### add roles\n\nIn the IAM \u0026 Admin \u003e IAM, for the Organization\n\nSelect \"Add\" and add the service account as a member, with the project creator role (roles/resourcemanager.projectCreator), and the billing role (roles/billing.user)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuwit%2Fterraform-gcp-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuwit%2Fterraform-gcp-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuwit%2Fterraform-gcp-lab/lists"}