diff --git a/.images/aws-custom.png b/.images/aws-custom.png new file mode 100644 index 0000000..e43f616 Binary files /dev/null and b/.images/aws-custom.png differ diff --git a/.images/aws-exclude.png b/.images/aws-exclude.png new file mode 100644 index 0000000..d4c60f2 Binary files /dev/null and b/.images/aws-exclude.png differ diff --git a/aws-region/README.md b/aws-region/README.md index f23b11f..02a731a 100644 --- a/aws-region/README.md +++ b/aws-region/README.md @@ -29,18 +29,19 @@ provider "aws" { ## Examples -### Customize Regions +### Customize regions -Change the display name and icon for a region: +Change the display name and icon for a region using the corresponding maps: ```hcl module "aws-region" { source = "https://registry.coder.com/modules/aws-region" + default = "ap-south-1" custom_names = { - "fra": "Awesome Germany!" + "ap-south-1": "Awesome Mumbai!" } custom_icons = { - "fra": "/icons/smiley.svg" + "ap-south-1": "/emojis/1f33a.png" } } @@ -49,17 +50,28 @@ provider "aws" { } ``` -### Exclude Regions +![AWS Custom](../.images/aws-custom.png) -Hide the `fra` region: +### Exclude regions + +Hide the Asia Pacific regions Seoul and Osaka: ```hcl module "aws-region" { source = "https://registry.coder.com/modules/aws-region" - exclude = [ "fra" ] + exclude = [ "ap-northeast-2", "ap-northeast-3" ] } provider "aws" { region = module.aws_region.value } ``` + +![AWS Exclude](../.images/aws-exclude.png) + +## Related templates + +For a complete AWS EC2 template, see the following examples in the [Coder Registry](https://registry.coder.com/). + +- [AWS EC2 (Linux)](https://registry.coder.com/templates/aws-linux) +- [AWS EC2 (Windows)](https://registry.coder.com/templates/aws-windows) diff --git a/azure-region/README.md b/azure-region/README.md index 50fb523..a6a0b7c 100644 --- a/azure-region/README.md +++ b/azure-region/README.md @@ -28,7 +28,7 @@ resource "azurem_resource_group" "example" { ### Customize existing regions -Change the display name for a region: +Change the display name and icon for a region using the corresponding maps: ```hcl module "azure-region" { @@ -55,11 +55,11 @@ Hide all regions in Australia except australiacentral: ```hcl module "azure-region" { source = "https://registry.coder.com/modules/azure-region" - exclude = [ - "australia", - "australiacentral2", - "australiaeast", - "australiasoutheast" + exclude = [ + "australia", + "australiacentral2", + "australiaeast", + "australiasoutheast" ] } @@ -70,9 +70,9 @@ resource "azurerm_resource_group" "example" { ![Azure Exclude](../.images/azure-exclude.png) - ## Related templates For a complete Azure template, see the following examples in the [Coder Registry](https://registry.coder.com/). + - [Azure VM (Linux)](https://registry.coder.com/templates/azure-linux) -- [Azure VM (Windows)](https://registry.coder.com/templates/azure-windows) \ No newline at end of file +- [Azure VM (Windows)](https://registry.coder.com/templates/azure-windows)