From 399951e552483a4f4c1dc7fbe2675c443f3dbd83 Mon Sep 17 00:00:00 2001 From: nitrocode Date: Fri, 4 Jun 2021 18:34:59 -0400 Subject: [PATCH] Fix README example (#9) * Fix README example * Auto Format Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> --- README.md | 13 ++++++++----- README.yaml | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9099cf5..3c3f797 100644 --- a/README.md +++ b/README.md @@ -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" { diff --git a/README.yaml b/README.yaml index 2f44478..83ef919 100644 --- a/README.yaml +++ b/README.yaml @@ -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" {