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`).
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`).
## Examples
### Using default settings
We can use the simplest format here, only adding a default selection as the `atl` region.
We can use the simplest format here, only adding a default selection as the `atl` region.
```hcl
```hcl
@ -26,6 +22,8 @@ module "fly-region" {


## Examples
### Using region whitelist
### Using region whitelist
The regions argument can be used to display only the desired regions in the Coder parameter.
The regions argument can be used to display only the desired regions in the Coder parameter.
artifactory_access_token = var.artifactory_access_token # An admin access token
artifactory_access_token = var.artifactory_access_token # An admin access token
package_managers = {
package_managers = {
"npm": "npm-local",
"npm": "npm-remote",
"go": "go-local",
"go": "go-remote",
"pypi": "pypi-local"
"pypi": "pypi-remote"
}
}
}
}
```
```
## Authentication
Get a JFrog access token from your Artifactory instance. The token must have admin permissions. It is recommended to store the token in a secret terraform variable.
Get a JFrog access token from your Artifactory instance. The token must have admin permissions. It is recommended to store the token in a secret terraform variable.