{"id":18706998,"url":"https://github.com/terraform-google-modules/terraform-google-datalab","last_synced_at":"2025-11-09T08:30:32.735Z","repository":{"id":36277339,"uuid":"197680436","full_name":"terraform-google-modules/terraform-google-datalab","owner":"terraform-google-modules","description":"Creates DataLab instances with support for GPU instances","archived":false,"fork":false,"pushed_at":"2024-12-19T17:09:36.000Z","size":188,"stargazers_count":6,"open_issues_count":5,"forks_count":19,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-12-28T07:18:13.364Z","etag":null,"topics":["cft-terraform","data-analytics"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/terraform-google-modules/datalab/google","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-google-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-19T01:30:04.000Z","updated_at":"2024-04-02T17:40:40.000Z","dependencies_parsed_at":"2024-01-03T21:27:09.587Z","dependency_job_id":"c297cd66-662a-4b81-9313-49adc5cb165a","html_url":"https://github.com/terraform-google-modules/terraform-google-datalab","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-datalab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-datalab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-datalab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-datalab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-google-modules","download_url":"https://codeload.github.com/terraform-google-modules/terraform-google-datalab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571542,"owners_count":19661164,"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":["cft-terraform","data-analytics"],"created_at":"2024-11-07T12:16:22.099Z","updated_at":"2025-11-09T08:30:32.707Z","avatar_url":"https://github.com/terraform-google-modules.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Datalab Terraform Module\n\nUse [Cloud Datalab](https://cloud.google.com/datalab/) to easily explore, visualize, analyze, and transform data using familiar languages, such as Python and SQL, interactively.\n\n## Compatibility\nThis module is meant for use with Terraform 0.13. If you haven't\n[upgraded](https://www.terraform.io/upgrade-guides/0-13.html) and need a Terraform\n0.12.x-compatible version of this module, the last released version\nintended for Terraform 0.12.x is [v1.0.0](https://registry.terraform.io/modules/terraform-google-modules/-datalab/google/v1.0.0).\n\n## Usage\n\nBasic usage of this module is as follows:\n\n```hcl\nmodule \"datalab\" {\n  source             = \"terraform-google-modules/datalab/google//modules/instance\"\n  version            = \"~\u003e 1.0\"\n  project_id         = \"\u003cPROJECT ID\u003e\"\n  zone               = \"us-central1-c\"\n  datalab_user_email = \"\u003cDATALAB USER EMAIL\u003e\n  network_name       = \"datalab-network\"\n  subnet_name        = \"datalab-subnetwork\"\n}\n```\n\nFunctional examples are included in the\n[examples](./examples/) directory.\n\n## Requirements\n\nThese sections describe requirements for using this module.\n\n### Software\n\nThe following dependencies must be available:\n\n- [Terraform](https://www.terraform.io/downloads.html) \u003e= 0.13.0\n- [Terraform Provider for GCP][terraform-provider-gcp] plugin \u003e= 3.53\n\n### Service Account\n\nA service account with the following minimum roles must be used to provision\nthe resources of this module:\n\n- Compute Instance Admin: `roles/compute.instanceAdmin` (create instance)\n- Compute Security Admin: `roles/compute.securityAdmin` (create firewall rule)\n- Service Account User: `roles/iam.serviceAccountUser` (access service account)\n\nIf using the examples you will need these additional roles.\n- Compute Network Admin: `roles/compute.networkAdmin` (create VPC)\n\nAdvance Example\n- Service Account Admin: `roles/iam.serviceAccountAdmin` (create service account)\n- Projects IAM Admin: `roles/resourcemanager.projectIamAdmin` (set IAM policy on project)\n\n### Service Account for instance\n\nThe service account for the datalab instances will need the permission `compute.instances.stop` in order to allow the idle timeout option to shutdown the instance.\n\n### APIs\n\nA project with the following APIs enabled must be used to host the\nresources of this module:\n\n- Compute Engine API : `compute.googleapis.com`\n- Identity and Access Management API : `iam.googleapis.com`\n- Cloud Resource Manager API: `cloudresourcemanager.googleapis.com`\n\n## Contributing\n\nRefer to the [contribution guidelines](./CONTRIBUTING.md) for\ninformation on contributing to this module.\n\n[iam-module]: https://registry.terraform.io/modules/terraform-google-modules/iam/google\n[project-factory-module]: https://registry.terraform.io/modules/terraform-google-modules/project-factory/google\n[terraform-provider-gcp]: https://www.terraform.io/docs/providers/google/index.html\n[terraform]: https://www.terraform.io/downloads.html\n\n# Access the Cloud Datalab UI\nSetup tunnel to the Datalab UI\n```\ngcloud beta compute start-iap-tunnel INSTANCE_NAME 8080 \\\n  --project PROJECT \\\n  --zone ZONE \\\n  --local-host-port=localhost:8080\n```\nUsing your browser go to http://localhost:8080\n\n# GPU instances\nNot all GPU types are supported in all zones. Go here to check which GPU type and zones are supported https://cloud.google.com/compute/docs/gpus/\n\n\nThe Datalab GPU instance will take a few more minutes to come up since it needs to install the NVIDIA Accelerated Graphics Driver\n\nTo verify that the drivers are installed correctly and the instance has the correct number of GPUs run:\n`/var/lib/nvidia/bin/nvidia-smi`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-google-modules%2Fterraform-google-datalab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-google-modules%2Fterraform-google-datalab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-google-modules%2Fterraform-google-datalab/lists"}