In cloudformation I create a hosted zone and try to add a certificate through the AWS certificate manager. When I create the certificate it keeps stuck on: 'Pending validation'. Both the hosted zone and the certificate are being created in cloudformation. When I try to do it the manual way it also keeps being stuck on 'Pending validation'.
The weirdest part is that the CNAME records are added to the DNS but ACM will/cannot validate the certificate afterwards.
This is what i create in cloudformation ->
'Route53HostedZone':
Type: AWS::Route53::HostedZone
Properties:
HostedZoneConfig:
Comment: HostedZone created by cloudformation
Name: example.com
and 'Certificate':
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: subdomain.example.com
DomainValidationOptions:
- DomainName: subdomain.example.com
HostedZoneId: !Ref Route53HostedZone
ValidationMethod: DNS
Does someone has any idea why the certificate keeps stuck at 'Pending validation'?
P.S. we own the domain name and it is registered in Route53