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

demandé il y a 3 ans1163 vues
3 réponses
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

répondu il y a 3 ans
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.

répondu il y a 3 ans
profile picture
EXPERT
vérifié il y a 18 jours
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
répondu il y a 3 ans
profile picture
EXPERT
vérifié il y a 18 jours

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions