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 Risposte
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
ESPERTO
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa
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
con risposta un mese 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