10000 fix: add all regions to aws examples (#1934) · coder/coder@1c5d94e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c5d94e

Browse files
authored
fix: add all regions to aws examples (#1934)
1 parent 7b40c69 commit 1c5d94e

File tree

2 files changed

+42
-2
lines changed
  • aws-windows
  • 2 files changed

    +42
    -2
    lines changed

    examples/templates/aws-linux/main.tf

    Lines changed: 21 additions & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -27,11 +27,31 @@ EOT
    2727
    sensitive = true
    2828
    }
    2929

    30+
    # Last updated 2022-05-31
    31+
    # aws ec2 describe-regions | jq -r '[.Regions[].RegionName] | sort'
    3032
    variable "region" {
    3133
    description = "What region should your workspace live in?"
    3234
    default = "us-east-1"
    3335
    validation {
    34-
    condition = contains(["us-east-1", "us-east-2", "us-west-1", "us-west-2"], var.region)
    36+
    condition = contains([
    37+
    "ap-northeast-1",
    38+
    "ap-northeast-2",
    39+
    "ap-northeast-3",
    40+
    "ap-south-1",
    41+
    "ap-southeast-1",
    42+
    "ap-southeast-2",
    43+
    "ca-central-1",
    44+
    "eu-central-1",
    45+
    "eu-north-1",
    46+
    "eu-west-1",
    47+
    "eu-west-2",
    48+
    "eu-west-3",
    49+
    "sa-east-1",
    50+
    "us-east-1",
    51+
    "us-east-2",
    52+
    "us-west-1",
    53+
    "us-west-2"
    54+
    ], var.region)
    3555
    error_message = "Invalid region!"
    3656
    }
    3757
    }

    examples/templates/aws-windows/main.tf

    Lines changed: 21 additions & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -24,11 +24,31 @@ EOT
    2424
    sensitive = true
    2525
    }
    2626

    27+
    # Last updated 2022-05-31
    28+
    # aws ec2 describe-regions | jq -r '[.Regions[].RegionName] | sort'
    2729
    variable "region" {
    2830
    description = "What region should your workspace live in?"
    2931
    default = "us-east-1"
    3032
    validation {
    31-
    condition = contains(["us-east-1", "us-east-2", "us-west-1", "us-west-2"], var.region)
    33+
    condition = contains([
    34+
    "ap-northeast-1",
    35+
    "ap-northeast-2",
    36+
    "ap-northeast-3",
    37+
    "ap-south-1",
    38+
    "ap-southeast-1",
    39+
    "ap-southeast-2",
    40+
    "ca-central-1",
    41+
    "eu-central-1",
    42+
    "eu-north-1",
    43+
    "eu-west-1",
    44+
    "eu-west-2",
    45+
    "eu-west-3",
    46+
    "sa-east-1",
    47+
    "us-east-1",
    48+
    "us-east-2",
    49+
    "us-west-1",
    50+
    "us-west-2"
    51+
    ], var.region)
    3252
    error_message = "Invalid region!"
    3353
    }
    3454
    }

    0 commit comments

    Comments
     (0)
    0