Using AWS SSL certificate provider, you can create from Terraform new certificates, but you can't use them until they're issued. The problem is that you've to create a record in Route53 to make that verification (aaaa-xxxx-vvvv. | CNAME | challenge)
Is it possible to automate that Route53 validation process after creating a new certificate with Terraform?
Here's my Terraform configuration:
resource "aws_acm_certificate" "acme-cert-prod" {
domain_name = "www.acme.io"
validation_method = "DNS"
tags = {
Environment = "prod"
}
lifecycle {
create_before_destroy = true
}
}
Are there any options I'm missing to get that certificate automatically issued?