You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue building my CDK packages letting me know that the domain name I used to create a Certificate in cdk can not be more than 64chars long. I also found this original github request that explains this is a hard limit on domain verified certificates comes from an RFC standard.
I am confused then at why i can create a certificate for a domain name that is longer than 64 chars when i do so from Certificate Manager in the AWS console.
This is the code that fails in CDK:
new Certificate(this, `${id}-tls-certificate`, {
"domainName": "*.long.name.of.domain.com",
"validation": CertificateValidation.fromDns(this.props.hostedZone),
});
and i get this error when i build the package
Error: Domain name must be 64 characters or less
at new Certificate (/workplace/pedretti/Bowser/src/BowserSearchServiceInfra/node_modules/aws-cdk-lib/aws-certificatemanager/lib/certificate.js:1:2127)
Not sure why there would be such a limit when I can create DNS record longer than that, but if there is a limit, then i'd expect to have the same limit in the console.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered an issue building my CDK packages letting me know that the domain name I used to create a
Certificate
in cdk can not be more than 64chars long. I also found this original github request that explains this is a hard limit on domain verified certificates comes from an RFC standard.I am confused then at why i can create a certificate for a domain name that is longer than 64 chars when i do so from Certificate Manager in the AWS console.
This is the code that fails in CDK:
and i get this error when i build the package
Not sure why there would be such a limit when I can create DNS record longer than that, but if there is a limit, then i'd expect to have the same limit in the console.
Beta Was this translation helpful? Give feedback.
All reactions