Skip to content

Commit

Permalink
Merge pull request #5 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 0.2.1 - Wait for certificate validation
  • Loading branch information
forevermatt authored Aug 2, 2023
2 parents f44303f + 370bde5 commit 210f3e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ resource "cloudflare_record" "validation" {
}

resource "aws_acm_certificate_validation" "this" {
count = var.create_dns_validation ? 1 : 0
certificate_arn = aws_acm_certificate.this.arn
validation_record_fqdns = [cloudflare_record.validation[0].hostname]
}
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

output "certificate_arn" {
description = "The ARN of the AWS ACM Certificate this created"
value = aws_acm_certificate.this.arn
description = "The ARN of the (validated) AWS ACM Certificate this created"
value = aws_acm_certificate_validation.this.certificate_arn
}

output "validation_id" {
description = "The time at which the certificate was issued"
value = one(aws_acm_certificate_validation.this[*].id)
value = aws_acm_certificate_validation.this.id
}

0 comments on commit 210f3e6

Please sign in to comment.