Skip to content

Commit

Permalink
When var.enabled = false the aws_route53_zone should not be created (#13
Browse files Browse the repository at this point in the history
)
  • Loading branch information
maartenvanderhoef authored and aknysh committed Nov 26, 2018
1 parent 567d4ab commit 74957ad
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
@@ -1,5 +1,5 @@
data "aws_route53_zone" "default" {
count = "${signum(length(compact(var.aliases)))}"
count = "${var.enabled == "true" ? signum(length(compact(var.aliases))) : 0}"
zone_id = "${var.parent_zone_id}"
name = "${var.parent_zone_name}"
}
Expand Down

0 comments on commit 74957ad

Please sign in to comment.