Amplify-cli: How to add custom domain name for EU Frankfurt?

Created on 24 Mar 2019  路  11Comments  路  Source: aws-amplify/amplify-cli

* Which Category is your question related to? *
Hosting
* What AWS Services are you utilizing? *
S3, CloudFront
* Provide additional details e.g. code snippets *
I ran the commands: amplify add hosting and amplify publish. I'm now wondering, how can I add a custom domain? I can't use the AWS Amplify console, because the console is somehow not available for EU Frankfurt.

hosting pending-close-response-required question

All 11 comments

@janhesters You could use cname as described in the cloudfront docs configure your custom domain for hosting.

@yuth Thank you! I will try that 馃檹

@janhesters Did this work for you?

Pleas re-open or respond to this issue if you're still blocked.

Sorry to hijack this, but @yuth and @kaustavghosh06 are you saying the only way to add a custom domain is to manually edit the CloudFront distribution after amplify creates it?

@et304383 no. Way to add custom domain is to use CNames

Uhh, which means manually editing after the fact. Or edit the generated CFN template.

Amplify should have this built in.

@et304383 Nader Dabit just published a great tutorial about this: https://twitter.com/dabit3/status/1117763069558444032

Yeah that's not the CLI nor is that easy. And it requires having added your app to the amplify console. If you're using just the CLI, this isn't really feasible.

It's also kinda silly that the tweet calls this CI/CD when the instructions involve going to the console and clicking around to add a domain. That's not automation.

I'd recommend at least putting a cleaned up instructions of what's in the cloudfront docs in the amplify framework docs. https://aws-amplify.github.io/docs/js/start

I also went hunting for how to take my amplify-hosted-webapp and put it on a custom domain. All I found was this issue tracker.

@janhesters - that is for Amplify Console, not Amplify Framework.

Was this page helpful?
0 / 5 - 0 ratings