- Newest
- Most votes
- Most comments
I understand you're having issues setting up a custom domain for your Amplify application that was created from an S3 static site bucket. Let me provide some insights and suggestions to help resolve this issue.
-
Domain Activation Process: The domain activation process can sometimes take a while, especially if there are DNS propagation delays. It's normal for the circle to keep spinning for some time. However, if it persists for an extended period (more than an hour), there might be an underlying issue.
-
Existing Certificate: When using an existing certificate, ensure that it covers both the main domain and the subdomain you're trying to add. If the certificate doesn't include the subdomain, you may encounter issues.
-
DNS Configuration: Make sure you've properly configured your DNS settings to point to the Amplify app. Amplify will provide you with CNAME records that need to be added to your DNS configuration.
-
Error on Retry: The error you're seeing when trying to restart the Add domain procedure suggests that the domain is already associated with the app. This is likely because the initial attempt is still in progress or partially completed.
To resolve this and use your existing domain and certificate with the Amplify application:
-
Wait for some time (about an hour) to see if the domain activation completes on its own.
-
If it doesn't complete, try removing the domain from the Amplify app entirely and then re-adding it.
-
Double-check that your existing certificate covers the subdomain you're trying to use.
-
Ensure your DNS settings are correctly configured according to Amplify's instructions.
-
If problems persist, you may need to create a new certificate specifically for this subdomain through AWS Certificate Manager.
-
As a last resort, you could try creating a new Amplify app and migrating your content to it, then setting up the custom domain on the new app.
If none of these steps resolve the issue, it would be advisable to contact AWS Support for further assistance, as they can look into the specifics of your account and application setup.
Sources
Simplify and enhance Amazon S3 static website hosting with AWS Amplify Hosting | AWS News Blog
Deploying a static website to AWS Amplify Hosting from an S3 general purpose bucket - Amazon Simple Storage Service
Wildcard Subdomains for Multi-tenant Apps on AWS Amplify Hosting | Front-End Web & Mobile
Relevant content
- asked 2 months ago
- asked 6 days ago
- asked a year ago
- asked 9 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Thank you for your answer,
I had some of the issues described above:
I deleted the domain. I created a new one with Amplify managed certificate that works.
Ensure that the certificate used covers all domain variations needed. For AWS-hosted DNS (Route 53), additional CNAMEs may not be required as Amplify often auto-configures DNS settings. If an error occurs with domain re-association, check for conflicts with existing CloudFront distributions or other AWS services. In some cases, using Amplify’s built-in certificate service can simplify the setup.