## Changes made - Updated all `source` properties in Terraform import snippets to use the new namespaced Terraform protocol URLs ## Notes - Probably need to wait until the latest version of the Registry website is pushed to production before we merge this in, just to be on the safe side - I replaced all the paths via a regex, and then double-checked all the files modified to make sure there weren't any false positives
| display_name | description | icon | maintainer_github | verified | tags | ||||
|---|---|---|---|---|---|---|---|---|---|
| AWS Region | A parameter with human region names and icons | ../../../../.icons/aws.svg | coder | true |
|
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" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/aws-region/coder"
version = "1.0.12"
default = "us-east-1"
}
provider "aws" {
region = module.aws_region.value
}
Examples
Customize regions
Change the display name and icon for a region using the corresponding maps:
module "aws-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/aws-region/coder"
version = "1.0.12"
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
}
Exclude regions
Hide the Asia Pacific regions Seoul and Osaka:
module "aws-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/aws-region/coder"
version = "1.0.12"
exclude = ["ap-northeast-2", "ap-northeast-3"]
}
provider "aws" {
region = module.aws_region.value
}
Related templates
For a complete AWS EC2 template, see the following examples in the Coder Registry.


