Can't activate root domain for my amplify app

0

Hi there!
I had my react app deployed and worked successfully, yesterday I updated my git repo, but my web site didn't work as I expected, so I checked my amplify console for issues and found something weird like my domain name disappeared, but it still worked correctly as I see it now. So I decided to add my custom domain again, but got an error "One or more of the CNAMEs you provided are already associated with a different resource" at the last step of domain activation. But I had only one amplify app (I don't have any records at CloudFront). Then I deleted that amplify app, deleted all dns records for my domain in Route 53. Then I've created a new amplify app (now I have only one app) but I still get the same error for domain activation step. Now I excluded root domain for my app and try to activate a sub domain like sub.mydomain.com. I don't get any errors but activation is still being processed, but I'm sure it will be completed. I use Route 53 and I'm sure that my domain is delegated to it. I assume I can activate a sub domain, but what is wrong with my root domain? Amplify automatically adds dns records it needs, so it is not my mistake. Can anyone please help me activate my root domain

posta 3 anni fa1163 visualizzazioni
3 Risposte
0

Sub domain activated. Now I try to enable root domain from domain management page, after I click update I see "Update domain association failed".
I suppose something can be wrong with redirection rule (redirection to www subdomain). When I try to remove this rule I can't save it (I see spinner, but no response)

Edited by: MikhailOG on Feb 15, 2021 12:15 PM

con risposta 3 anni fa
0

Now I've activated my domain. The issue was that I have several IAM users and one user had the same app with another name connected to domain.

con risposta 3 anni fa
profile picture
ESPERTO
verificato 18 giorni fa
0

Glad to see that you were able to set it up! For future reference, we have these 2 guides for common issues with Custom Domains:

[1]: https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html
[2]: https://github.com/aws-amplify/amplify-console/blob/main/FAQ.md

AWS
con risposta 3 anni fa
profile picture
ESPERTO
verificato 18 giorni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande