- Newest
- Most votes
- Most comments
The issues you're experiencing with your custom domain setup in AWS Amplify are not uncommon, and there are several potential causes and solutions to consider:
-
DNS Propagation: DNS changes can take up to 48 hours to propagate globally. Ensure you've waited long enough for the changes to take effect. You can use online DNS lookup tools to check if the records are visible from different locations.
-
SSL Certificate: Amplify uses AWS Certificate Manager (ACM) to provision SSL certificates for custom domains. Make sure the certificate for your domain has been successfully issued and validated by ACM. The "not secure" connection you're seeing suggests there might be an issue with the SSL configuration.
-
CloudFront Distribution: It's unusual that Amplify didn't create its own CloudFront distribution for your setup. This could be the root cause of your issues. You may need to check if there are any existing CloudFront distributions associated with your app or domain.
-
Redirection Configuration: The fact that the root domain is redirecting to the www subdomain suggests that some redirection is working, but it's not completing the process correctly. Double-check your redirection settings in Amplify and Route 53.
-
CNAME and A Record Configuration: Verify that both the CNAME for the www subdomain and the A record for the root domain are correctly pointing to the appropriate CloudFront distribution.
-
Amplify Console Settings: Review your domain settings in the Amplify Console to ensure everything is configured correctly.
-
Cache Invalidation: If you've made changes to your app or domain settings, try invalidating the cache in the Amplify console.
To resolve these issues, you can try the following steps:
-
Delete the custom domain from the Amplify console and start the process again, ensuring all DNS records are correctly set in Route 53.
-
Use the AWS CLI or SDK to describe the ACM certificate and any associated CloudFront distributions to gather more detailed information about their current state.
-
Check if there are any conflicting aliases or distributions using the AWS CLI command: aws cloudfront list-conflicting-aliases --alias your-domain.com
-
Ensure that your AWS account has the necessary permissions to update CloudFront distributions and manage certificates in ACM.
-
If the problem persists, you may need to contact AWS Support for more in-depth troubleshooting specific to your account and configuration.
Regarding your AWS SES and Lambda functions, these shouldn't directly affect the custom domain setup, but ensure that any environment variables or configurations referencing your domain are updated if necessary.
If none of these steps resolve the issue, engaging with AWS support might be your best option to get a more detailed analysis of your specific setup and resolve any underlying issues.
Sources
Amplify custom domain setup issue | AWS re:Post
Custom domain for Amplify not working | AWS re:Post
Can't Activate AWS Amplify Custom Domain | AWS re:Post
Relevant content
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago