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 Respuestas
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
EXPERTO
respondido hace un mes
profile picture
EXPERTO
revisado hace un mes
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
respondido hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas