From eb656309f9d6b7b2c49ce74b73dc76ea1d0542ef Mon Sep 17 00:00:00 2001 From: Nick Adams Date: Sat, 1 May 2021 00:02:47 -0500 Subject: [PATCH] fixed var --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 9038448..98d450c 100644 --- a/main.tf +++ b/main.tf @@ -54,7 +54,7 @@ resource "aws_route53_record" "dmarc_this" { } resource "aws_route53_record" "caa_this" { - count = var.amazon_caa_record == true ? [1] : [0] + count = var.amazon_caa_record == true ? 1 : 0 zone_id = aws_route53_zone.this.zone_id name = aws_route53_zone.this.name type = "CAA" @@ -68,7 +68,7 @@ resource "aws_route53_record" "caa_this" { } resource "aws_route53_record" "github_this" { - count = var.github_verification_record != "" && var.github_org_name != "" ? [1] : [0] + count = var.github_verification_record != "" && var.github_org_name != "" ? 1 : 0 zone_id = aws_route53_zone.this.zone_id name = "_github-challenge-${var.github_org_name}.${aws_route53_zone.this.name}" type = "TXT"