Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 5fea85b

Browse files
committed
Use Latest ACM Cert
Update data source to use the latest issued ACM cert
1 parent 75a7f8e commit 5fea85b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ data "aws_route53_zone" "zone" {
1111
}
1212

1313
data "aws_acm_certificate" "cert" {
14-
count = "${local.enable_custom_domain ? 1 : 0}"
15-
domain = "${replace(var.dns_zone, "/.$/","")}" # dirty hack to strip off trailing dot
14+
count = "${local.enable_custom_domain ? 1 : 0}"
15+
domain = "${replace(var.dns_zone, "/.$/","")}" # dirty hack to strip off trailing dot
16+
statuses = ["ISSUED"]
17+
most_recent = true
1618
}
1719

1820
data "aws_region" "current" {}

0 commit comments

Comments
 (0)