Commit eb3a647e authored by Max Moon's avatar Max Moon Committed by Erik Osterman

normalize disable method (#27)

* normalize disable method

switch variable default to empty string, switch enable bool to check length of zone_id variable

* regenerate readme
parent d129bdfa
......@@ -115,7 +115,7 @@ Available targets:
| tags | Additional tags (_e.g._ map("BusinessUnit","ABC") | map | `<map>` | no |
| transit_encryption_enabled | Enable TLS | string | `true` | no |
| vpc_id | AWS VPC id | string | `REQUIRED` | no |
| zone_id | Route53 DNS Zone id | string | `false` | no |
| zone_id | Route53 DNS Zone id | string | `` | no |
## Outputs
......
......@@ -30,7 +30,7 @@
| tags | Additional tags (_e.g._ map("BusinessUnit","ABC") | map | `<map>` | no |
| transit_encryption_enabled | Enable TLS | string | `true` | no |
| vpc_id | AWS VPC id | string | `REQUIRED` | no |
| zone_id | Route53 DNS Zone id | string | `false` | no |
| zone_id | Route53 DNS Zone id | string | `` | no |
## Outputs
......
......@@ -118,7 +118,7 @@ resource "aws_cloudwatch_metric_alarm" "cache_memory" {
module "dns" {
source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.2.1"
enabled = "${var.enabled == "true" && var.zone_id != "false"}"
enabled = "${var.enabled == "true" && length(var.zone_id) > 0 ? "true" : "false"}"
namespace = "${var.namespace}"
name = "${var.name}"
stage = "${var.stage}"
......
......@@ -120,7 +120,7 @@ variable "availability_zones" {
}
variable "zone_id" {
default = "false"
default = ""
description = "Route53 DNS Zone id"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment