feat: Implement AWS region aliases (#646)

This commit is contained in:
Mike Sampson
2019-12-21 04:30:47 +11:00
committed by Matan Kushner
parent f3784f5aaa
commit 256a2be949
5 changed files with 53 additions and 6 deletions
+7 -3
View File
@@ -128,11 +128,12 @@ The `aws` module shows the current AWS region and profile. This is based on
### Options
| Variable | Default | Description |
| ----------------- | --------------- | --------------------------------------------------------------------------- |
| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
| ----------------- | --------------- | ----------------------------------------------------------------------------|
| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
| `displayed_items` | `all` | Choose which item to display. Possible values: [`all`, `profile`, `region`] |
| `region_aliases` | | Table of region aliases to display in addition to the AWS name. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `false` | Disables the `AWS` module. |
| `displayed_items` | `all` | Choose which item to display. Possible values: [`all`, `profile`, `region`] |
### Example
@@ -143,6 +144,9 @@ The `aws` module shows the current AWS region and profile. This is based on
style = "bold blue"
symbol = "🅰 "
displayed_items = "region"
[aws.region_aliases]
ap-southeast-2 = "au"
us-east-1 = "va"
```
## Battery