【发布时间】:2023-02-14 16:39:27
【问题描述】:
我似乎无法获得 ACM DNS 验证证书(aws-cdk 2.23.0、2.24.0)来验证 .info 域。每次都会超时。我很确定几个月前我成功地使用了同样的代码。我想知道是否有什么改变?
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,
});
我从 CDK 得到的错误是:
Received response status [FAILED] from custom resource. Message returned: Resource is not in the state certificateValidated (RequestId: .....)
我猜这是因为验证超时。
我可以看到验证记录已在托管区域中创建:
_c66d3e7c05fac89b27b619c84677ebb5.mydomain.info CNAME Simple - _7347cc5c453e83adefc9ad849cdeab8e.rdnyqppgxp.acm-validations.aws.
我不确定如何找出验证失败的原因。
【问题讨论】:
标签: amazon-web-services aws-cdk aws-certificate-manager