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.
![]() |
4 months ago | |
---|---|---|
.. | ||
README.md | 4 months ago | |
main.test.ts | 2 years ago | |
main.tf | 2 years ago |
README.md
display_name | description | icon | maintainer_github | verified | tags | ||||
---|---|---|---|---|---|---|---|---|---|
Fly.io Region | A parameter with human region names and icons | ../.icons/fly.svg | coder | true |
|
Fly.io Region
This module adds Fly.io regions to your Coder template. Regions can be whitelisted using the regions
argument and given custom names and custom icons with their respective map arguments (custom_names
, custom_icons
).
We can use the simplest format here, only adding a default selection as the atl
region.
module "fly-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2"
default = "atl"
}
Examples
Using region whitelist
The regions argument can be used to display only the desired regions in the Coder parameter.
module "fly-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2"
default = "ams"
regions = ["ams", "arn", "atl"]
}
Using custom icons and names
Set custom icons and names with their respective maps.
module "fly-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2"
default = "ams"
custom_icons = {
"ams" = "/emojis/1f90e.png"
}
custom_names = {
"ams" = "We love the Netherlands!"
}
}
Associated template
Also see the Coder template registry for a Fly.io template that provisions workspaces as Fly.io machines.