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 Answers
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
EXPERT
answered 19 days ago
profile picture
EXPERT
reviewed 19 days ago
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
answered 19 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions