-
-
Notifications
You must be signed in to change notification settings - Fork 460
'One or more of the CNAMEs you provided are already associated with a different resource.' #324
Comments
Here is the debug log
|
Im adding this here as documentation for anyone else who runs into this issue. I resolved this by performing the following (note - I am not sure what part/s of the following steps actually fixed the problem, but what I did below fixed it and thats the important thing)
Go to AWS Cloudfront console
|
Experience this a lot when deploying from different machines. I was looking in to setting up CI/CD for my Next.js project but it looks like this will be an issue if deploying builds on different machines/instances does not work |
@jolosimeon maybe this will help: #328 (comment) I noted two options in linked comment:
|
This problem occurs because as of today this component doesn't reliably detect if the deployment already has the resource. So after a few deploys, it tries to create a new CF distribution and tries to attach the domain & fails since it is already attached to the older deployment! I'm struggling this issue for some time now and tried many workarounds but nothing is reliable. |
I have the same problem. It is a blocker when the plugin can not detect if the deployment (domain) already has been set. |
This issue is documented in the readme - you need to make sure you keep your |
Ok. I don't want to have How about this PR: #477
|
Yes that's correct. I don't think that PR will bypass the requirement for keeping state as there are other resources created during the deployment of this component, not just CloudFront. |
I've documented the |
Describe the bug
I am deploying a basic next.js application that generates an entire "static" site in terms of next.js.
I had deployed this site multiple times before a few days ago. I came back to do an update and get the following error
CNAMEAlreadyExists: One or more of the CNAMEs you provided are already associated with a different resource.
To Reproduce
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: