-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create subdomain: The certificate that is attached to your distribution doesn't cover the alternate domain name (CNAME) that you're trying to add #821
Comments
I was getting this error a lot when I was trying to attach my own domain, but it turned out it was because I had an old Amplify app which I was originally trying to connect the domain to which I had forgotten about. Is your domain hosted on Route53 too? |
Yes, I have my domain zone hosted in Route53 but my domain are registered elsewhere. |
Now I can avoid error if I force certificate and domain for CloudFront input:
However, running |
Is your CNAME attached on your CloudFront distribution too? |
Now it is but I updated CloudFront distribution manually to change cert and domain. |
I think this happened because I added |
Added in #826 a small fix which improves subdomain like app.example.com support for CloudFront. You need to specify domain name manually by adding |
Merged and published the PR, so assuming this one can be closed. |
Describe the bug
Unable to use 3rd level domain e.g. app.example.com
Actual behavior
When I execute ´serverless´it gives me error "InvalidViewerCertificate: The certificate that is attached to your distribution doesn't cover the alternate domain name (CNAME) that you're trying to add."
Expected behavior
CloudFront distribution with the correct cert and CNAMEs should be created successfully.
Steps to reproduce
I am using subdomain like app.example.com and wildcard cert for it.
I have disabled www.app.example.com generation, and when I do
serverless
it gives me the error:Screenshots/Code/Logs
serverless.yml
Versions
Additional context
I created wildcard certificate in AWS Certificate Manager in
us-east-1
North Virginia region.I tried to specify this certificate by adding
certificateArn
to serverless.ymlChecklist
latest
oralpha
@sls-next/serverless-component
release version, which may have already fixed your issue or implemented the feature you are trying to use. Note that the oldserverless-next.js
component and theserverless-next.js
plugin are deprecated and no longer maintained.I also tried 1.8.0 release, by adding to serverless.yml:
component: "@sls-next/serverless-component@1.18.0"
The text was updated successfully, but these errors were encountered: