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.
modules/aws-region
Michael Brewer d1646db3cc
feat(aws-region): add missing regions
Add missing regions

- af-south-1     - Africa (Cape Town)
- ap-east-1      - Asia Pacific (Hong Kong)
- ap-south-2     - Asia Pacific (Hyderabad)
- ap-southeast-3 - Asia Pacific (Jakarta)
- ap-southeast-4 - Asia Pacific (Melbourne)
- ca-west-1      - Canada West (Calgary)
- eu-central-2   - Europe (Zurich)
- eu-south-1     - Europe (Milan)
- eu-south-2     - Europe (Spain)
- il-central-1   - Israel (Tel Aviv)
- me-south-1     - Middle East (Bahrain)
1 year ago
..
README.md chore: bump version to 1.0.2 and add script to update them automatically. (#128) 1 year ago
main.test.ts chore: allowed empty default for modules (#72) 2 years ago
main.tf feat(aws-region): add missing regions 1 year ago

README.md

display_name description icon maintainer_github verified tags
AWS Region A parameter with human region names and icons ../.icons/aws.svg coder true
helper
parameter
regions
aws

AWS Region

A parameter with all AWS regions. This allows developers to select the region closest to them.

Customize the preselected parameter value:

module "aws-region" {
  source  = "registry.coder.com/modules/aws-region/coder"
  version = "1.0.2"
  default = "us-east-1"
}

provider "aws" {
  region = module.aws_region.value
}

AWS Regions

Examples

Customize regions

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

module "aws-region" {
  source  = "registry.coder.com/modules/aws-region/coder"
  version = "1.0.2"
  default = "ap-south-1"

  custom_names = {
    "ap-south-1" : "Awesome Mumbai!"
  }

  custom_icons = {
    "ap-south-1" : "/emojis/1f33a.png"
  }
}

provider "aws" {
  region = module.aws_region.value
}

AWS Custom

Exclude regions

Hide the Asia Pacific regions Seoul and Osaka:

module "aws-region" {
  source  = "registry.coder.com/modules/aws-region/coder"
  version = "1.0.2"
  exclude = ["ap-northeast-2", "ap-northeast-3"]
}

provider "aws" {
  region = module.aws_region.value
}

AWS Exclude

For a complete AWS EC2 template, see the following examples in the Coder Registry.