From fadeb3db3e1f7093ccbc26e404456a3d13f54b4b Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 21 Sep 2019 17:13:02 -0700 Subject: [PATCH 1/2] add variable types --- main.tf | 114 +++++++++++++++++++++++++-------------------------- variables.tf | 11 ++--- 2 files changed, 62 insertions(+), 63 deletions(-) diff --git a/main.tf b/main.tf index b719be1..6d1619a 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,6 @@ locals { public_dir_with_leading_slash = "${length(var.public_dir) > 0 ? "/${var.public_dir}" : ""}" - static_website_routing_rules = < Date: Sat, 21 Sep 2019 18:51:22 -0700 Subject: [PATCH 2/2] use map for redirects --- README.md | 4 +++- variables.tf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c70cd03..0a7fcf8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ module "s3-static-website" { source = "conortm/s3-static-website/aws" domain_name = "www.my-aws-s3-static-website.com" - redirects = ["my-aws-s3-static-website.com"] + redirects = { + "my-static-website" : "my-aws-s3-static-website.com" + } secret = "SOME_SECRET_MANAGED_OUTSIDE_OF_VERSION_CONTROL" cert_arn = "ARN_OF_SSL_CERTIFICATE" zone_id = "HOSTED_ZONE_ID" diff --git a/variables.tf b/variables.tf index bbe9137..1ff7a13 100644 --- a/variables.tf +++ b/variables.tf @@ -25,7 +25,7 @@ variable "secret" { variable "tags" { description = "A mapping of tags to assign to each resource" - type = map(string) + type = map(string) default = {} }