Skip to content

Commit

Permalink
Fix README example (#9)
Browse files Browse the repository at this point in the history
* Fix README example

* Auto Format

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
nitrocode and cloudpossebot authored Jun 4, 2021
1 parent 7764737 commit 399951e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,16 @@ The table below correctly indicates which inputs are required.
Here's how to invoke this example module in your projects

```hcl
module "example" {
source = "https://github.com/cloudposse/terraform-aws-utils.git?ref=master"
locals {
shorten_regions = true
naming_convention = local.shorten_regions ? "to_short" : "identity"
az_map = module.example.region_az_alt_code_maps[local.naming_convention]
}
locals {
naming_convention = var.shorten_regions ? "to_short" : "identity"
az_map = module.example.region_az_alt_code_maps[local.naming_convention]]
module "utils_example_complete" {
source = "cloudposse/utils/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
}
module "label" {
Expand Down
13 changes: 8 additions & 5 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,16 @@ usage: |-
Here's how to invoke this example module in your projects
```hcl
module "example" {
source = "https://github.com/cloudposse/terraform-aws-utils.git?ref=master"
locals {
shorten_regions = true
naming_convention = local.shorten_regions ? "to_short" : "identity"
az_map = module.example.region_az_alt_code_maps[local.naming_convention]
}
locals {
naming_convention = var.shorten_regions ? "to_short" : "identity"
az_map = module.example.region_az_alt_code_maps[local.naming_convention]]
module "utils_example_complete" {
source = "cloudposse/utils/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
}
module "label" {
Expand Down

0 comments on commit 399951e

Please sign in to comment.