2 Answers
- Newest
- Most votes
- Most comments
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 address | Destination Address | Redirect Type | Country Code |
---|---|---|---|
https://branch-name.d1m7bkiki6tdw1.amplifyapp.com | https://example.com | permanent redirect (301) |
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.
answered 19 days ago
Relevant content
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
As of April 2024, Amplify cannot be linked directly to AWS WAF, so in order to block the IP list, you will need to setup CloudFront and use AWS WAF. https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/enable-aws-waf-for-web-applications-hosted-by-aws-amplify.html