Add additional modules (#19)

* Add modules

* Rename AWS region

* Fix AWS region mod

* Add AWS logo

* Fix AWS logo color

* Add comment

* Add icons

* Delete undocumented

* Fix maintainer

* Fix icons
This commit is contained in:
Kyle Carberry
2023-09-20 14:01:11 -05:00
committed by GitHub
parent a25b637c46
commit 8eae3295d5
13 changed files with 428 additions and 0 deletions

65
aws-region/README.md Normal file
View File

@@ -0,0 +1,65 @@
---
display_name: AWS Region
description: A parameter with human region names and icons
icon: ../.icons/aws.svg
maintainer_github: coder
verified: true
tags: [helper, parameter]
---
# AWS Region
A parameter with all AWS regions. This allows developers to select
the region closest to them.
## Examples
### Default Region
Customize the preselected parameter value:
```hcl
module "aws-region" {
source = "https://registry.coder.com/modules/aws-region"
default = "us-east-1"
}
provider "aws" {
region = module.aws_region.value
}
```
### Customize Regions
Change the display name and icon for a region:
```hcl
module "aws-region" {
source = "https://registry.coder.com/modules/aws-region"
custom_names = {
"fra": "Awesome Germany!"
}
custom_icons = {
"fra": "/icons/smiley.svg"
}
}
provider "aws" {
region = module.aws_region.value
}
```
### Exclude Regions
Hide the `fra` region:
```hcl
module "aws-region" {
source = "https://registry.coder.com/modules/aws-region"
exclude = [ "fra" ]
}
provider "aws" {
region = module.aws_region.value
}
```