I seem to be unable to get an ACM DNS Validated certificate (aws-cdk 2.23.0
, 2.24.0
) to validate for a .info
domain. It times out every time. I'm pretty sure I used this same code a few months ago successfully. I'm wondering if something has changed?
const zone = HostedZone.fromHostedZoneAttributes(this, 'zone', {
zoneName: 'mydomain.info',
hostedZoneId: 'Z0xxxxxxxxx',
});
const certificate = new Certificate(this, 'certificate', {
domainName: 'mydomain.info',
validation: CertificateValidation.fromDns(zone),
});
// I've also tried:
const certificate = new DnsValidatedCertificate(this, 'certificate', {
domainName: 'mydomain.info',
hostedZone: zone,
});
The error I get from CDK is:
Received response status [FAILED] from custom resource. Message returned: Resource is not in the state certificateValidated (RequestId: .....)
Which I'm guessing is because validation is timing out.
I can see the validation record has been created in the hosted zone:
_c66d3e7c05fac89b27b619c84677ebb5.mydomain.info CNAME Simple - _7347cc5c453e83adefc9ad849cdeab8e.rdnyqppgxp.acm-validations.aws.
I'm not sure how to work out why validation is failing.