- Newest
- Most votes
- Most comments
The issue you're experiencing with SSL setup failure for your Amplify application is likely due to a conflict with existing DNS records or CloudFront distributions. Here are some steps to troubleshoot and potentially resolve the problem:
-
DNS Configuration: Ensure that the CNAME record for app.<rootdomain>.in is correctly pointing to the new Amplify app's URL. Double-check for any typos or extra spaces in the DNS settings.
-
CloudFront Distribution Conflict: Although you mentioned not finding any conflicting CloudFront distributions, it's possible that a distribution from your previous app is still lingering. Check all AWS regions for any hidden or forgotten CloudFront distributions that might be associated with your domain.
-
Certificate Manager: Verify that there are no old or conflicting SSL certificates in AWS Certificate Manager (ACM) for your domain.
-
DNS Propagation: While you've waited 48 hours, sometimes DNS changes can take longer to fully propagate. Use online DNS lookup tools to check if the CNAME record is visible from different locations globally.
-
Amplify App Cleanup: Ensure that all traces of the old Amplify app have been removed. Sometimes, deleting an app doesn't fully remove all associated resources.
-
IAM Permissions: Confirm that your AWS account has the necessary permissions to create and manage CloudFront distributions and ACM certificates.
-
Route 53 (if applicable): If you're using Route 53, check for any conflicting records in your hosted zone.
-
Amplify Console: Try removing the custom domain from your Amplify app and then re-adding it. This can sometimes trigger a fresh SSL setup process.
-
CLI Approach: As an alternative, you could try setting up the custom domain using the Amplify CLI instead of the console, as this might provide more detailed error messages.
If none of these steps resolve the issue, you may need to contact AWS Support for more in-depth troubleshooting, as they can access account-specific information that might reveal the root cause of the problem.
Sources
custom domain SSL Verification fails in Amplify | AWS re:Post
AWS Amplify - SSL Creation error, CNAMEAlreadyExists | AWS re:Post
Amplify custom domain setup issue | AWS re:Post
Relevant content
- asked 13 days ago
- asked 7 months ago
- AWS OFFICIALUpdated 3 years ago
It worked after deleting the custom domain and recreated, I presume it was not working earlier before because previously deleted application not cleaned up attached resources immediately, It was nightmare when production application going down like this. I think @AWS team needs to address this as priority