updated README

This commit is contained in:
Stephen Kirby
2023-09-20 20:25:35 +00:00
parent 7f5b6e9ec0
commit bdd5c374e7
2 changed files with 35 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ variable "exclude" {
}
locals {
regions = {
all_regions = {
"eastus" = {
name = "US (Virginia)"
icon = "/emojis/1f1fa-1f1f8.png"
@@ -166,7 +166,7 @@ data "coder_parameter" "region" {
default = var.default
mutable = var.mutable
dynamic "option" {
for_each = { for k, v in local.regions : k => v if !(contains(var.exclude, k)) }
for_each = { for k, v in local.all_regions : k => v if !(contains(var.exclude, k)) }
content {
name = try(var.custom_names[option.key], option.value.name)
icon = try(var.custom_icons[option.key], option.value.icon)