- Newest
- Most votes
- Most comments
The issue you're experiencing with setting up a custom domain for your AWS Amplify Gen 2 application is not uncommon, especially when using a third-party DNS provider. Here are some steps and considerations to help resolve the problem:
-
Certificate Coverage: Ensure that your wildcard certificate (*.buzz.com) is correctly imported into AWS Certificate Manager (ACM) and is in the 'Issued' state. The certificate should cover both buzz.com and *.buzz.com to avoid any potential issues.
-
DNS Configuration: You need to add two CNAME records to your DNS configuration at your third-party provider (Planet Hoster):
a. A CNAME record for domain validation: This is provided by AWS when you request the certificate and is used to prove domain ownership. b. A CNAME record for the custom domain (fizz.buzz.com): This should point to the Amplify app's domain (typically ending with amplifyapp.com).
-
Waiting Period: After adding the DNS records, it can take up to 48 hours for the changes to propagate globally. Be patient and try again after this period.
-
Amplify Console Steps:
- In the Amplify console, go to "Domain management"
- Choose "Add domain"
- Enter your domain (fizz.buzz.com)
- Select the certificate you imported to ACM
- Follow the prompts to add the necessary CNAME records to your DNS
-
Verification: Use the 'dig' command or online DNS lookup tools to verify that your CNAME records are correctly set and visible.
-
CloudFront Distribution: Amplify manages the CloudFront distribution for you, so you don't need to manually create or configure it.
If the issue persists after following these steps, you may need to:
- Delete the custom domain from Amplify and try adding it again.
- Ensure there are no conflicting DNS records or redirects for the subdomain.
- Check if the domain is associated with any other AWS resources or accounts.
Regarding documentation, you're right that it can be challenging to find up-to-date information for specific scenarios. For the most current information, always refer to the official AWS Amplify documentation and consider reaching out to AWS support if you continue to face issues.
Sources
Amplify custom domain setup issue | AWS re:Post
Can't Activate AWS Amplify Custom Domain | AWS re:Post
Custom domain for Amplify not working | AWS re:Post
Relevant content
- asked 9 months ago
- asked 4 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago