From 91ab13116a84072ce66a0304dd770733b58f496f Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 10 Aug 2023 22:06:17 +0100 Subject: [PATCH] Readme/example fix (#229) --- README.md | 8 ++++---- README.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 58dd1f17..b225651c 100644 --- a/README.md +++ b/README.md @@ -152,15 +152,15 @@ module "cdn" { aliases = ["assets.cloudposse.com"] dns_alias_enabled = true parent_zone_name = "cloudposse.com" - s3_origins = { + s3_origins = [{ domain_name = module.s3_bucket.bucket_regional_domain_name origin_id = module.s3_bucket.bucket_id origin_path = null s3_origin_config = { origin_access_identity = null # will get translated to the origin_access_identity used by the origin created by this module. } - } - origin_groups = { + }] + origin_groups = [{ primary_origin_id = null # will get translated to the origin id of the origin created by this module. failover_origin_id = module.s3_bucket.bucket_id failover_criteria = [ @@ -169,7 +169,7 @@ module "cdn" { 500, 502 ] - } + }] } ``` diff --git a/README.yaml b/README.yaml index 0881db2f..2ef85ec6 100644 --- a/README.yaml +++ b/README.yaml @@ -121,15 +121,15 @@ usage: |- aliases = ["assets.cloudposse.com"] dns_alias_enabled = true parent_zone_name = "cloudposse.com" - s3_origins = { + s3_origins = [{ domain_name = module.s3_bucket.bucket_regional_domain_name origin_id = module.s3_bucket.bucket_id origin_path = null s3_origin_config = { origin_access_identity = null # will get translated to the origin_access_identity used by the origin created by this module. } - } - origin_groups = { + }] + origin_groups = [{ primary_origin_id = null # will get translated to the origin id of the origin created by this module. failover_origin_id = module.s3_bucket.bucket_id failover_criteria = [ @@ -138,7 +138,7 @@ usage: |- 500, 502 ] - } + }] } ```