apprunner-roadmap icon indicating copy to clipboard operation
apprunner-roadmap copied to clipboard

AppRunner Custom Domain limitation on APEX domain

Open ttirtawi opened this issue 3 years ago • 8 comments

When we added custom domain, the instruction from the console isn’t quite clear for 2 reasons:

  1. The instruction mentioned to add 2 records, but the table show 3 records.
  2. For the DNS Target one, it didn’t take the account the limitation of creating CNAME on APEX domain. So it gives misleading instruction to create CNAME on the apex domain. (ref: RFC 1912)

image

Suggest to give better instruction especially when user use apex domain, as CNAME will not work anyway.

ttirtawi avatar Jul 26 '21 07:07 ttirtawi

+1

Would be ideal if they were auto created like when ACM creates records for you

EDIT: #57

Screen Shot 2021-08-03 at 11 21 13 AM

joswayski avatar Aug 03 '21 15:08 joswayski

How can i create APEX domain record for App Runner linked domain? I want to connect xyz.com domain hosted on Route 53 with App Runner but CNAME for APEX domains is not possible.

Any ideas? :/

sitole avatar Aug 19 '21 16:08 sitole

How can i create APEX domain record for App Runner linked domain? I want to connect xyz.com domain hosted on Route 53 with App Runner but CNAME for APEX domains is not possible.

Any ideas? :/

You can’t do it in the meantime

rajanvalencia avatar Aug 22 '21 18:08 rajanvalencia

Anyone know what are the "better instructions"? I can't seem to get this working. ( I don't absolutely need the apex. I tried adding www in the route53 CNAME record and it still isn't working. I get a "not secure" warning from chrome and a 404 if I ignore the warning. My DNS status is verified and active in the App Runner console.)

bessiambre avatar Jan 23 '22 18:01 bessiambre

I just setup App Runner domain for www.xyz.com and then create CloudFront distribution associated with xyz.com. Cloudfront just redirects uses from APEX to www.xyz.com. It works but its complicated. I want direct support of APEX domain in App Runner.

sitole avatar Jan 24 '22 08:01 sitole

Hi thanks for the answer! Now I can't seem to be able to pull off the first part or setting up the App Runner domain for www.xyz.com. App Runner seems to only allow me to enter a naked domain.

Now I do see that the documentation states: "You can optionally include the www subdomain of your domain. However, this is currently only supported in the API. The App Runner console doesn't support it."

Does that mean there is no way to configure DNS from the console and the UI there is just a placebo?

bessiambre avatar Jan 24 '22 22:01 bessiambre

You can configurate DNS directly from AWS Console. The message about "www" means in API you can use something like alsoCreateWwwDnsRecord: true and then you can request just xyz.com and www record will be created automatically. In AWS Console you must create two separated requests.

sitole avatar Jan 25 '22 09:01 sitole

Thanks again for the help. If I click on "Link Domain" in the console there is a popup that lets you enter the domain name, but it will not let you prepend a subdomain. The text field just deletes characters.

[edit] Oh wait, maybe it's letting me now. I got confused because there seems to be code that runs every 10 or 15 seconds that deletes characters out of the input field. It seemed to be removing the 'www' I was trying to write. If I write the whole thing and click withing like 10s, I seem to be able to create it. It must be some glitch in the interface. Putting this here in case others are struggling. The trick is to write your domain and click fast!

bessiambre avatar Jan 25 '22 16:01 bessiambre

https://docs.aws.amazon.com/apprunner/latest/dg/manage-custom-domains-route53.html Hi Right now Apprunner supports Route53 Alias record, which enables you to create APEX domain

csuna-chen avatar Dec 13 '22 06:12 csuna-chen

https://docs.aws.amazon.com/apprunner/latest/dg/manage-custom-domains-route53.html Hi Right now Apprunner supports Route53 Alias record, which enables you to create APEX domain

This feature is supported in App Runner now. Launch announcement: https://aws.amazon.com/about-aws/whats-new/2022/09/aws-app-runner-supports-amazon-route-53-alias-record-root-domain-name/

snnles avatar Dec 13 '22 06:12 snnles

Does this have to be enabled or something? I can't select an app runner alias for my domain

gmjelle avatar Jan 11 '23 17:01 gmjelle

Hi, jellevdvliet, have you follow up the instruction on public doc, basically you should firstly follow this page (https://docs.aws.amazon.com/apprunner/latest/dg/manage-custom-domains.html) to associate the domain to apprunner service in App Runner Console. And then follow this page to create Alias Record in Route53 console(https://docs.aws.amazon.com/apprunner/latest/dg/manage-custom-domains-route53.html)

  1. Go to Route53 console
  2. Choose the name of the hosted zone that you want to use
  3. Choose Create record.
  4. In Value/Route traffic to: Choose Alias to App Runner Application, then choose the Region that the endpoint is from. Choose the domain name of the application that you want to route traffic to.
  5. ......(see the detail in doc )

csuna-chen avatar Jan 11 '23 18:01 csuna-chen