You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			| ![github-actions[bot]](/assets/img/avatar_default.png) 49df203bd6 Co-authored-by: matifali <matifali@users.noreply.github.com> | 2 years ago | |
|---|---|---|
| .. | ||
| README.md | 2 years ago | |
| main.test.ts | 2 years ago | |
| main.tf | 2 years ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	| display_name | description | icon | maintainer_github | verified | tags | ||||
|---|---|---|---|---|---|---|---|---|---|
| GCP Region | Add Google Cloud Platform regions to your Coder template. | ../.icons/gcp.svg | coder | true | 
 | 
Google Cloud Platform Regions
This module adds Google Cloud Platform regions to your Coder template.
module "gcp_region" {
  source  = "registry.coder.com/modules/gcp-region/coder"
  version = "1.0.12"
  regions = ["us", "europe"]
}
resource "google_compute_instance" "example" {
  zone = module.gcp_region.value
}
Examples
Add only GPU zones in the US West 1 region
Note: setting gpu_only = true and using a default region without GPU support, the default will be set to null.
module "gcp_region" {
  source   = "registry.coder.com/modules/gcp-region/coder"
  version  = "1.0.12"
  default  = ["us-west1-a"]
  regions  = ["us-west1"]
  gpu_only = false
}
resource "google_compute_instance" "example" {
  zone = module.gcp_region.value
}
Add all zones in the Europe West region
module "gcp_region" {
  source                 = "registry.coder.com/modules/gcp-region/coder"
  version                = "1.0.12"
  regions                = ["europe-west"]
  single_zone_per_region = false
}
resource "google_compute_instance" "example" {
  zone = module.gcp_region.value
}
Add a single zone from each region in US and Europe that has GPUs
module "gcp_region" {
  source                 = "registry.coder.com/modules/gcp-region/coder"
  version                = "1.0.12"
  regions                = ["us", "europe"]
  gpu_only               = true
  single_zone_per_region = true
}
resource "google_compute_instance" "example" {
  zone = module.gcp_region.value
}
