Skip to content

Commit

Permalink
Check ms_txt is set before creating the TXT record.
Browse files Browse the repository at this point in the history
  • Loading branch information
mccanney committed Apr 29, 2018
1 parent 904eb0f commit c41b3c0
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 @@ -47,7 +47,7 @@ resource "aws_route53_record" "autodiscover" {
}

resource "aws_route53_record" "spf" {
count = "${var.enable_exchange ? 1 : 0}"
count = "${var.enable_exchange && length(var.ms_txt) > 0 ? 1 : 0}"

zone_id = "${var.zone_id}"
name = ""
Expand Down

0 comments on commit c41b3c0

Please sign in to comment.