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개 답변
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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
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
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠