Skip to content

AWS Amplify custom domain stuck at AWAITING_APP_CNAME — CloudFront hostname not resolving

0

I have deployed a web application using AWS Amplify Hosting in the eu-west-1 region. The application works correctly on its default amplifyapp.com URL (HTTP 200), and recent deployments have succeeded.

However, my custom domain, registered with Namecheap and using Namecheap DNS, remains stuck at AWAITING_APP_CNAME.

Troubleshooting completed:

  • Added the ACM certificate validation CNAME. DNS lookup confirms it resolves correctly.
  • Added the www CNAME pointing to the exact CloudFront hostname supplied by Amplify. This CNAME resolves correctly.
  • Added an ALIAS record for the apex (@) pointing to the same CloudFront hostname.
  • The apex domain returns no A records.
  • The Amplify-provided CloudFront hostname itself returns DNS status NOERROR, but zero A records, including when querying public DNS resolvers.
  • aws amplify get-domain-association reports AWAITING_APP_CNAME, with verified: false for both the root and www subdomains.
  • No additional error reason is provided.

The DNS records were added approximately two hours ago.

My questions:

  1. Is it normal for an Amplify-provided CloudFront hostname to return no A records while the custom domain is awaiting activation?
  2. Could this indicate that the AWS-managed CloudFront distribution has not finished provisioning?
  3. Is there a specific diagnostic or corrective action I should take?
  4. Should I allow more time, update the DNS configuration, or recreate the Amplify custom-domain association?

I want to resolve the issue without disrupting the existing, working Amplify application.

3 Answers
0

Two hours isn't unusual for AWAITING_APP_CNAME. However, a cloudfront.net hostname that returns no A records at all is not normal for a distribution that's live. That suggests the problem is on Amplify's side, not in your DNS.

Your questions

1. Is it normal for the CloudFront hostname to have no A records? Not for a deployed distribution. Once a CloudFront distribution is live, its dx.cloudfront.net name resolves to A (and AAAA) records. A NOERROR response with no answers means the name exists but nothing is being served on it yet.

2. Does it mean the distribution hasn't finished provisioning? That's the most likely explanation, though I can't confirm how Amplify works internally. It also explains your apex result: a Namecheap ALIAS record resolves the target's A records on Namecheap's side, so if the target has none, the apex has none either. Your apex records are probably fine, and the apex is simply mirroring the empty target.

3. What should I check before changing anything?

  • Get the exact hostname Amplify expects for each subdomain. The root and www can have different targets, so check each one:
    aws amplify get-domain-association --app-id <appId> --domain-name example.com \
      --query 'domainAssociation.subDomains[].[subDomainSetting.prefix,dnsRecord,verified]'
  • Compare that with what's actually published:
    dig +short CNAME www.example.com @1.1.1.1
    dig +short A dx.cloudfront.net @1.1.1.1
  • Check for common Namecheap problems:
    • Host field: Namecheap appends the domain automatically, so enter www and not www.example.com. Otherwise you can end up with www.example.com.example.com.
    • Conflicting records: remove any leftover parking-page CNAME or URL Redirect record on www or @.
    • CAA records: if you have any, make sure they allow amazon.com.
  • Look at the domain status in the console. If it shows SSL verification as complete and only the app CNAME as pending, your certificate side is fine.

4. Wait, change DNS, or recreate?

  1. Wait a bit longer. Give it up to 24 hours since you added the records. If DNS checks out and the CloudFront hostname starts returning A records, the status usually moves to AVAILABLE by itself.
  2. If it's still stuck, recreate the domain association. Delete it in Amplify (Hosting → Custom domains) and add it again.
    • This doesn't affect your amplifyapp.com URL, branches or deployments. It only touches the custom domain, which isn't serving traffic yet anyway.
    • Afterwards, Amplify may give you a new ACM validation record and a new CloudFront hostname. Update the Namecheap records to the new values.
  3. Consider moving DNS to Route 53. Point Namecheap's nameservers to a Route 53 hosted zone. Amplify then creates the records itself and uses a native ALIAS record for the apex, which avoids most third-party DNS problems.
  4. If recreating doesn't help, open an AWS Support case. Include the app ID, domain, status and timestamps, and note that the CloudFront hostname has no A records. Only AWS can see whether the distribution failed to provision.
EXPERT

answered a month ago

EXPERT

reviewed a month ago

  • Update: New CloudFront alias conflict after retry

    The domain association has now failed with this error:

    "One or more aliases specified for the distribution includes an incorrectly configured DNS record that points to another CloudFront distribution."

    Additional diagnostics:

    • Namecheap's www CNAME resolves publicly to the current Amplify-provided target: d19nkgpwsesyyv.cloudfront.net.
    • That CloudFront hostname returns no A records through 1.1.1.1.
    • The DNS wildcard test against Namecheap's authoritative nameserver returned no A record.
    • Searching the CloudFront distributions visible in my AWS account for this domain returned [].
    • The ACM validation CNAME remains configured.

    The domain association was retried and a new CloudFront target was provided, but activation failed again.

    Could an older Amplify-managed CloudFront distribution still be holding one of these domain aliases? If so, how can the conflicting association be identified and released without affecting the working Amplify application?

0

When setting up a custom domain with AWS Amplify Hosting, the AWAITING_APP_CNAME status indicates that Amplify is waiting to detect your DNS records pointing to the CloudFront distribution it has provisioned for your custom domain. Let me address your questions:

  1. CloudFront hostname with no A records: It is actually normal for the Amplify-provided CloudFront hostname to return no A records initially. The CloudFront distribution associated with your custom domain may still be provisioning or propagating across AWS's global infrastructure. CloudFront distributions can take time to fully deploy and become resolvable.

  2. CloudFront provisioning: Yes, this likely indicates the CloudFront distribution is still being set up. When you add a custom domain to Amplify, AWS provisions a CloudFront distribution and requests an ACM certificate. Even after the certificate validates, the distribution itself needs time to deploy globally. This process can take anywhere from several minutes to over an hour in some cases.

  3. Diagnostic and corrective actions: First, verify your DNS configuration is correct—your CNAME records should point to the exact CloudFront hostname provided by Amplify (it typically looks like a long alphanumeric string followed by cloudfront.net). For the apex domain, if Namecheap supports ALIAS-like functionality, ensure it's configured properly; otherwise, you may need to use a CNAME flattening service or point the apex to the www subdomain. Second, allow additional time for both DNS propagation and CloudFront distribution deployment. DNS changes can take up to 48 hours to fully propagate, though they often resolve faster. Third, you can monitor the status using the Amplify console or CLI commands like 'aws amplify get-domain-association' to check for status changes.

  4. Wait or recreate: At this stage, with only two hours elapsed, I recommend waiting longer before taking further action. DNS propagation and CloudFront distribution deployment both require patience. If after 24-48 hours the status hasn't changed and the CloudFront hostname still doesn't resolve, then consider removing and re-adding the custom domain in Amplify. However, avoid doing this prematurely as it will restart the entire process.

The fact that your application works on the default amplifyapp.com domain is a good sign—your application itself is healthy. The custom domain setup is a separate infrastructure layer that simply needs time to complete. Continue monitoring the domain association status, and the CloudFront hostname should eventually begin resolving with A records once the distribution is fully deployed.

answered a month ago

EXPERT

reviewed a month ago

0

Update: New CloudFront alias conflict after retry

The domain association has now failed with this error:

"One or more aliases specified for the distribution includes an incorrectly configured DNS record that points to another CloudFront distribution."

Additional diagnostics:

  • Namecheap's www CNAME resolves publicly to the current Amplify-provided target: d19nkgpwsesyyv.cloudfront.net.
  • That CloudFront hostname returns no A records through 1.1.1.1.
  • The DNS wildcard test against Namecheap's authoritative nameserver returned no A record.
  • Searching the CloudFront distributions visible in my AWS account for this domain returned [].
  • The ACM validation CNAME remains configured.

The domain association was retried and a new CloudFront target was provided, but activation failed again.

Could an older Amplify-managed CloudFront distribution still be holding one of these domain aliases? If so, how can the conflicting association be identified and released without affecting the working Amplify application?

answered a month 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.