Skip to content

I remove my cloudfront deployment and create it again. But, When i create new deployment and use my prev domain, it can't access and error is occured.

0

error message like this

Enter image description here

Already, i wait 3 hours but i can't confirm it

asked 2 years ago306 views

2 Answers
0
Accepted Answer

The error message means that the domain name you configured as an alias name for the distribution is configured in DNS to point to the old CloudFront distribution that you deleted.

Just delete the DNS record, wait for some time, maybe 15 minutes, for DNS caches hopefully to clear, and then create the new CloudFront distribution. Once it's being deployed and has received its new, unique DNS name, you can create the CNAME or A/AAAA alias records in your DNS zone that point to that unique name of the new distribution.

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

0

The error message you're encountering suggests that there might be an issue with the alternate domain name (CNAME) configuration in your CloudFront distribution. This can happen when you recreate a distribution and try to use a previously configured domain name. Here are a few steps to troubleshoot and resolve this issue:

  1. Ensure that you've added the alternate domain name (CNAME) to your new CloudFront distribution configuration. When you recreate a distribution, you need to explicitly add the custom domain name you want to use.

  2. Verify that you have a valid SSL/TLS certificate associated with your new distribution that covers the domain name you're trying to use. The certificate should be either from AWS Certificate Manager (ACM) or imported into IAM.

  3. Check your DNS settings to make sure they are correctly pointing to the new CloudFront distribution's domain name. You may need to update the DNS records if the new distribution has a different domain name than the previous one.

  4. If you're using a more specific domain name (e.g., www.example.com) while an existing wildcard DNS entry (*.example.com) points to a CloudFront distribution, you might need to create a new distribution and add a DNS entry pointing to it before adding the more specific CNAME.

  5. Wait for DNS propagation, which can take up to 48 hours in some cases, although it's usually much faster.

If you've verified all these points and are still experiencing issues after waiting for a reasonable amount of time (which you've already done), you may need to contact AWS Support for further assistance. They can help verify your account and resolve any underlying issues that might be preventing you from adding new CloudFront resources.
Sources
Troubleshooting distribution issues - Amazon CloudFront
Creating a CloudFront Distribution fails | AWS re:Post
AccessDenied: Your account must be verified before you can add new CloudFront resources. To verify your account, please contact AWS Support (https://console.aws.amazon.com/support/home#/) and include | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.