Skip to content

Commit

Permalink
fixed var
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfox675 committed May 1, 2021
1 parent 1875cad commit eb65630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit eb65630

Please sign in to comment.