|
|
|
@ -13,8 +13,12 @@ This module adds Google Cloud Platform regions to your Coder template.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "gcp_region" {
|
|
|
|
|
source = "https://registry.coder.com/modules/gcp-region"
|
|
|
|
|
regions = ["us", "europe"]
|
|
|
|
|
source = "https://registry.coder.com/modules/gcp-region"
|
|
|
|
|
regions = ["us", "europe"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resource "google_compute_instance" "example" {
|
|
|
|
|
zone = module.gcp_region.value
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -31,15 +35,23 @@ module "gcp_region" {
|
|
|
|
|
regions = ["us-west1"]
|
|
|
|
|
gpu_only = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resource "google_compute_instance" "example" {
|
|
|
|
|
zone = module.gcp_region.value
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Add all zones in the Europe West region
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "gcp_region" {
|
|
|
|
|
source = "https://registry.coder.com/modules/gcp-region"
|
|
|
|
|
regions = ["europe-west"]
|
|
|
|
|
single_zone_per_region = false
|
|
|
|
|
source = "https://registry.coder.com/modules/gcp-region"
|
|
|
|
|
regions = ["europe-west"]
|
|
|
|
|
single_zone_per_region = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resource "google_compute_instance" "example" {
|
|
|
|
|
zone = module.gcp_region.value
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -47,9 +59,13 @@ module "gcp_region" {
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "gcp_region" {
|
|
|
|
|
source = "https://registry.coder.com/modules/gcp-region"
|
|
|
|
|
regions = ["us", "europe"]
|
|
|
|
|
gpu_only = true
|
|
|
|
|
single_zone_per_region = true
|
|
|
|
|
source = "https://registry.coder.com/modules/gcp-region"
|
|
|
|
|
regions = ["us", "europe"]
|
|
|
|
|
gpu_only = true
|
|
|
|
|
single_zone_per_region = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resource "google_compute_instance" "example" {
|
|
|
|
|
zone = module.gcp_region.value
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|