Remove default AWS Amplify domain

0

I have a frontend React application deployed using AWS Amplify. By default when creating the app and setting the repository and branch, there is a default domain attributed to the app but I already added a custom domain and now I want to remove the default one so the app can only be accessible through the custom domain. How can I remove the default domain?

2 Antworten
1

Hello.

I don't think you can delete the default domain (amplifyapp.com) because it is tied to Amplify.
As an alternative, consider redirecting to a custom domain when accessing the default domain.
You can use Amplify's redirect settings to redirect access from the default domain to a custom domain.
https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#simple-redirects-and-rewrites

Specifically, I think it would be best to configure the following redirect settings.

Original addressDestination AddressRedirect TypeCountry Code
https://branch-name.d1m7bkiki6tdw1.amplifyapp.comhttps://example.compermanent redirect (301)
profile picture
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
0

Thanks for the answer above. Ideally I would like to remove completely but if it's not possible, then redirecting might be enough. Can you also let me know if it's possible to limit the access for a list of IPs? Thanks in advance.

Tiago
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen