TemplatesModules
Back to Modules
exoscale-zone Icon

exoscale-zone

By:
A parameter with human zone names and icons
README
Variables (8)
Parameters (1)
Source

A parameter with all Exoscale zones. This allows developers to select the zone closest to them.

Customize the preselected parameter value:

1module "exoscale-zone" {
2  source  = "registry.coder.com/modules/exoscale-zone/coder"
3  version = "1.0.12"
4  default = "ch-dk-2"
5}
6
7
8data "exoscale_compute_template" "my_template" {
9  zone = module.exoscale-zone.value
10  name = "Linux Ubuntu 22.04 LTS 64-bit"
11}
12
13resource "exoscale_compute_instance" "instance" {
14  zone = module.exoscale-zone.value
15  # ...
16}

Exoscale Zones

Examples

Customize zones

Change the display name and icon for a zone using the corresponding maps:

1module "exoscale-zone" {
2  source  = "registry.coder.com/modules/exoscale-zone/coder"
3  version = "1.0.12"
4  default = "at-vie-1"
5
6  custom_names = {
7    "at-vie-1" : "Home Vienna"
8  }
9
10  custom_icons = {
11    "at-vie-1" : "/emojis/1f3e0.png"
12  }
13}
14
15data "exoscale_compute_template" "my_template" {
16  zone = module.exoscale-zone.value
17  name = "Linux Ubuntu 22.04 LTS 64-bit"
18}
19
20resource "exoscale_compute_instance" "instance" {
21  zone = module.exoscale-zone.value
22  # ...
23}

Exoscale Custom

Exclude regions

Hide the Switzerland zones Geneva and Zurich

1module "exoscale-zone" {
2  source  = "registry.coder.com/modules/exoscale-zone/coder"
3  version = "1.0.12"
4  exclude = ["ch-gva-2", "ch-dk-2"]
5}
6
7data "exoscale_compute_template" "my_template" {
8  zone = module.exoscale-zone.value
9  name = "Linux Ubuntu 22.04 LTS 64-bit"
10}
11
12resource "exoscale_compute_instance" "instance" {
13  zone = module.exoscale-zone.value
14  # ...
15}

Exoscale Exclude

Related templates

An exoscale sample template will be delivered soon.