Custom Domain Name with AWS API Gateway | Step by Step Tutorial
ฝัง
- เผยแพร่เมื่อ 3 ธ.ค. 2024
- In this video, I teach you how to clean up your API Gateway url from the default into a custom url such as www.myapi.mywebsite.com .
Looking to get hands on experience building on AWS with a REAL project? Check out my course - The AWS Learning Accelerator! courses.beabet...
📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚
Clean Code - amzn.to/37T7xdP
Clean Architecture - amzn.to/3sCEGCe
Head First Design Patterns - amzn.to/37WXAMy
Domain Driver Design - amzn.to/3aWSW2W
Code Complete - amzn.to/3ksQDrB
The Pragmatic Programmer - amzn.to/3uH4kaQ
Algorithms - amzn.to/3syvyP5
Working Effectively with Legacy Code - amzn.to/3kvMza7
Refactoring - amzn.to/3r6FQ8U
🎙 MY RECORDING EQUIPMENT 🎙
Shure SM58 Microphone - amzn.to/3r5Hrf9
Behringer UM2 Audio Interface - amzn.to/2MuEllM
XLR Cable - amzn.to/3uGyZFx
Acoustic Sound Absorbing Foam Panels - amzn.to/3ktIrY6
Desk Microphone Mount - amzn.to/3qXMVIO
Logitech C920s Webcam - amzn.to/303zGu9
Fujilm XS10 Camera - amzn.to/3uGa30E
Fujifilm XF 35mm F2 Lens - amzn.to/3rentPe
Neewer 2 Piece Studio Lights - amzn.to/3uyoa8p
💻 MY DESKTOP EQUIPMENT 💻
Dell 34 inch Ultrawide Monitor - amzn.to/2NJwph6
Autonomous ErgoChair 2 - bit.ly/2YzomEm
Autonomous SmartDesk 2 Standing Desk - bit.ly/2YzomEm
MX Master 3 Productivity Mouse - amzn.to/3aYwKVZ
Das Keyboard Prime 13 MX Brown Mechanical- amzn.to/3uH6VBF
Veikk A15 Drawing Tablet - amzn.to/3uBRWsN
🌎 Find me here:
Twitter - / beabetterdevv
Instagram - / beabetterdevv
Patreon - Donations help fund additional content - / beabetterdev
#AWS
#ApiGateway
#Serverless
Great video...thanks for the info....just to add on top of it, I have my domain hosted on google domains, so 2 minor differences for me...first, for the certificate validation, i needed to add the cname record in google domain, and unlike in route53, certificate wasn't issued immediately, took some time, about an hour or so (might have to do something with propagation of dns records in google domain, not sure)....
Secondly, the step where "A" record is added in route53, i had to add the same record as a "cname" in google domains, as "A" record expects exact ipv4 addresses and cname can point to a different host..got it working after that...
one of the bet videos from this channel.
Worked so well for me! Thank you so much! :)
wow! a wholesome video with clear definition! thanks a lot man.
Thanks for this! Helped 100% even for edge API endpoint.
Thank you, this was very clear and helped me a lot, I did not realise I had to add the record to route 53
This video has helped me so many times.
I even use it myself as a reference! :)
You nailed it and therefore so did I. thanks!!
Fantastic tutorial, thanks for the upload!!
Great video! Worked at first try and saved me from a lot of headaches! Thank you!
This was extremely helpful, thank you!
Glad it was helpful!
Awesome video! worked at very first try! many thanks!
Great video. Worked on the first try. Thank you so much!
amazing man, it worked great :)
Great to hear Salim!
Thank you for this awesome tutorial, have you made the other video for Edge-optimized endpoint type?
Thanks so much Hatem! Not at this time but I'll put it on my list.
Great tutorial, thanks man
You're awesome dude!!! thanks a lot!
Excelente video, solo me toco investigar por aparte el tema de Route 53
Thanks a lot, i was stuck in the last part where we have to setup the API gateway alias to the domain as A name in the route53, it's solved!
How about adding several endpoints to the same domain?
I love you content, im learning aws and you are the best!
You have a video for do the same thing but with a static bucket s3?
My problem is that i have the domain in a different provider
I think you should be able to switch to Route 53 by
1. creating a hosted zone in route 53
2. you'll get soa and nameserver records by default
3. you can use the ns record from the hosted zone to ur current provider to make route 53 your default dns manager of sorts
Hi Kali, thanks for your kind words. Check out my video on S3 static hosting here: th-cam.com/video/mls8tiiI3uc/w-d-xo.html
Great tutorial, exactly what I wanted.
But a question, when you were done adding aa simple record, at 12:36, we can see a A name record point from your domain to AWS's domain. Aren't A name records supposed to point only to IP addresses ??
So the thing is you need to host domain in Route 53 (AWS), then AWS allow custom A names to point to AWS services, learned it hard way 🙂
@@VIKASSAINI007 so this can't be done with google domains..?? It expects an ipv4 address, but the custom domain does not have one, at least i can't find one...
Nevermind, in google domain I needed to make an entry as "cname" as opposed to "A" record in route53 and it worked....
Great Video! Thanks!
Thank you soooooo much! ありがとう!
You're very welcome.
Thank you! It is still helpful :)
You're very welcome!
Hi, nice tutorial! For how long are these certificates valid, and are they automatically autorefreshed after expiration?
Yes, AWS refresh them automatically after expiration, you do not need to do anything!
whr is the link to setup a domain in ur description ?
thank you so much. it's so helpful.
You're very welcome!
Thank you! :)
Thank you!
Maravilloso! Muchas gracias!
Life saver.
Glad you enjoyed Razi!
great tutorial. thanks
Hello! I would really like any idea for how to do the following;
I want to deploy a recently trained Comprehend model to a website so that my students can interact with it.
How can i achieve that?
I just want a small white box where they can input the data and another box with the results.
I use Route 53, but I don't have the option to create a record via a wizzard. Via standard way to add a record it doesn't allow to create an A record for anything else than IP adress. So I used the CNAME record and it worked. Just in case anyone had the same case as me.
very good point!. same case, but my domain is managed by other provider
Why are you adding A instead of CNAME in the last step? Im not an expert, but in my experience, it was always CNAME.
I mean I also did and managed A record they way you did, and it works because it particularly points to the API mapping and it works great.
Thanks a lot for the video. AWS docs are really terrible at explaining all these required steps.
Hi, great tutorial
How to I redirect http traffic to my subdomain to https?
Nice tut! 10nx
Glad you enjoyed Liam!
Awesome! Thanks a lot.
How to assign elastic ip address to APIGW
Will this result in additional costs?
Nice tutorial. How would this work if I need to use 3rd party/private certificate and not from ACM?
Import your 3rd party certificate into ACM
I'm stuck on the last step. I tried a CNAME record as others have suggested but it's not working. Any advice would be really appreciated.
What if I am using a different DNS provider, They only allow ipv4 address in A Record.
you probably should put the api gateway behind cloudfront for security instead of api gateway upfront in route 53
Fyi, who uses third party services you need just add CNAME instead of A record. It works for me.
For third party domain names, do we need to update Route53 with CNAME?
I don't see any option in my API dropdown in Configure API mappings. I followed everything right. The certificate were even issued correctly.
Great video! Wondering if this would work for 3rd party registered domains e.g. Google Domains? Would the CNAME record just need to be added to the DNS
Hi Ezeikel, I haven't tried this but don't see why it wouldn't work!
Tried but not working, also thing is you need to host domain in Route 53 (AWS), then AWS allow custom A names to point to AWS services, learned it hard way 🙂
Unfortunately you didn't mentioned how to create API (9:53) that's why I dont have any information in Configure API Mapping section. so I can"t go further with your tutorial...
but this giving error to the Cloudflare
Yes i see you are world of warcraft player 😅
Thanks! very helpful
Thank you!
Awesome. Thanks!