added AWS screenshots
This commit is contained in:
BIN
.images/aws-custom.png
Normal file
BIN
.images/aws-custom.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
BIN
.images/aws-exclude.png
Normal file
BIN
.images/aws-exclude.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
@@ -29,18 +29,19 @@ provider "aws" {
|
|||||||
|
|
||||||
## Examples
|
## 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
|
```hcl
|
||||||
module "aws-region" {
|
module "aws-region" {
|
||||||
source = "https://registry.coder.com/modules/aws-region"
|
source = "https://registry.coder.com/modules/aws-region"
|
||||||
|
default = "ap-south-1"
|
||||||
custom_names = {
|
custom_names = {
|
||||||
"fra": "Awesome Germany!"
|
"ap-south-1": "Awesome Mumbai!"
|
||||||
}
|
}
|
||||||
custom_icons = {
|
custom_icons = {
|
||||||
"fra": "/icons/smiley.svg"
|
"ap-south-1": "/emojis/1f33a.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,17 +50,28 @@ provider "aws" {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Exclude Regions
|

|
||||||
|
|
||||||
Hide the `fra` region:
|
### Exclude regions
|
||||||
|
|
||||||
|
Hide the Asia Pacific regions Seoul and Osaka:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
module "aws-region" {
|
module "aws-region" {
|
||||||
source = "https://registry.coder.com/modules/aws-region"
|
source = "https://registry.coder.com/modules/aws-region"
|
||||||
exclude = [ "fra" ]
|
exclude = [ "ap-northeast-2", "ap-northeast-3" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "aws" {
|
provider "aws" {
|
||||||
region = module.aws_region.value
|
region = module.aws_region.value
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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,7 +28,7 @@ resource "azurem_resource_group" "example" {
|
|||||||
|
|
||||||
### Customize existing regions
|
### Customize existing regions
|
||||||
|
|
||||||
Change the display name for a region:
|
Change the display name and icon for a region using the corresponding maps:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
module "azure-region" {
|
module "azure-region" {
|
||||||
@@ -70,9 +70,9 @@ resource "azurerm_resource_group" "example" {
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## Related templates
|
## Related templates
|
||||||
|
|
||||||
For a complete Azure template, see the following examples in the [Coder Registry](https://registry.coder.com/).
|
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 (Linux)](https://registry.coder.com/templates/azure-linux)
|
||||||
- [Azure VM (Windows)](https://registry.coder.com/templates/azure-windows)
|
- [Azure VM (Windows)](https://registry.coder.com/templates/azure-windows)
|
||||||
Reference in New Issue
Block a user