Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .images/aws-custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/aws-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/azure-custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/azure-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/azure-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/filebrowser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/vscode-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 19 additions & 7 deletions aws-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand All @@ -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)
28 changes: 23 additions & 5 deletions azure-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ resource "azurem_resource_group" "example" {
}
```

![Azure Region Default](../.images/azure-default.png)

## Examples

### 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" {
source = "https://registry.coder.com/modules/azure-region"
custom_names = {
"eastus": "Eastern United States!"
"australia": "Go Australia!"
}
custom_icons = {
"eastus": "/icons/smiley.svg"
"australia": "/icons/smiley.svg"
}
}

Expand All @@ -44,17 +46,33 @@ resource "azurerm_resource_group" "example" {
}
```

![Azure Region Custom](../.images/azure-custom.png)

### Exclude Regions

Hide the `westus2` region:
Hide all regions in Australia except australiacentral:

```hcl
module "azure-region" {
source = "https://registry.coder.com/modules/azure-region"
exclude = [ "westus2" ]
exclude = [
"australia",
"australiacentral2",
"australiaeast",
"australiasoutheast"
]
}

resource "azurerm_resource_group" "example" {
location = module.azure_region.value
}
```

![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)
1 change: 1 addition & 0 deletions azure-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ data "coder_parameter" "region" {
description = var.description
default = var.default
mutable = var.mutable
icon = "/icon/azure.png"
dynamic "option" {
for_each = { for k, v in local.all_regions : k => v if !(contains(var.exclude, k)) }
content {
Expand Down
2 changes: 2 additions & 0 deletions filebrowser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module "filebrowser" {
}
```

![Filebrowsing Example](../.images/filebrowser.png)

## Examples

### Serve a specific directory
Expand Down
2 changes: 2 additions & 0 deletions vscode-desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ module "vscode" {
agent_id = coder_agent.example.id
}
```

![VSCode Desktop Button](../.images/vscode-desktop.png)