Skip to content

Commit

Permalink
var.enabled is a bool not a string (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmackett authored and aknysh committed Jul 19, 2019
1 parent 7c9db75 commit 6f16cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ resource "aws_cloudfront_distribution" "default" {

module "dns" {
source = "git::https://github.com/cloudposse/terraform-aws-route53-alias.git?ref=tags/0.3.0"
enabled = var.enabled == "true" && length(var.parent_zone_id) > 0 || length(var.parent_zone_name) > 0 ? "true" : "false"
enabled = var.enabled && length(var.parent_zone_id) > 0 || length(var.parent_zone_name) > 0 ? true : false
aliases = var.aliases
parent_zone_id = var.parent_zone_id
parent_zone_name = var.parent_zone_name
Expand Down

0 comments on commit 6f16cec

Please sign in to comment.