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

ความคิดเห็น • 77

  • @prasanjeetmohanty7632
    @prasanjeetmohanty7632 ปีที่แล้ว +10

    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...

  • @yohanamudarra2068
    @yohanamudarra2068 2 ปีที่แล้ว

    one of the bet videos from this channel.

  • @EdchelStephenNini
    @EdchelStephenNini 7 วันที่ผ่านมา

    Worked so well for me! Thank you so much! :)

  • @amirhossain2k9
    @amirhossain2k9 ปีที่แล้ว

    wow! a wholesome video with clear definition! thanks a lot man.

  • @ckworton
    @ckworton ปีที่แล้ว

    Thanks for this! Helped 100% even for edge API endpoint.

  • @brampeirsful
    @brampeirsful ปีที่แล้ว

    Thank you, this was very clear and helped me a lot, I did not realise I had to add the record to route 53

  • @tomontheinternet
    @tomontheinternet 3 ปีที่แล้ว +1

    This video has helped me so many times.

    • @BeABetterDev
      @BeABetterDev  3 ปีที่แล้ว +5

      I even use it myself as a reference! :)

  • @darrylwilliams7091
    @darrylwilliams7091 9 หลายเดือนก่อน

    You nailed it and therefore so did I. thanks!!

  • @anilkumar-iq2td
    @anilkumar-iq2td 9 หลายเดือนก่อน

    Fantastic tutorial, thanks for the upload!!

  • @pepinoartworks
    @pepinoartworks 3 ปีที่แล้ว

    Great video! Worked at first try and saved me from a lot of headaches! Thank you!

  • @cmburns2606
    @cmburns2606 ปีที่แล้ว +1

    This was extremely helpful, thank you!

  • @leonardox222
    @leonardox222 ปีที่แล้ว

    Awesome video! worked at very first try! many thanks!

  • @alexrusin
    @alexrusin ปีที่แล้ว

    Great video. Worked on the first try. Thank you so much!

  • @salimhossain2192
    @salimhossain2192 3 ปีที่แล้ว +3

    amazing man, it worked great :)

  • @Hatem.ElRakhawy
    @Hatem.ElRakhawy 2 ปีที่แล้ว +1

    Thank you for this awesome tutorial, have you made the other video for Edge-optimized endpoint type?

    • @BeABetterDev
      @BeABetterDev  2 ปีที่แล้ว

      Thanks so much Hatem! Not at this time but I'll put it on my list.

  • @vaibhavgupta7429
    @vaibhavgupta7429 ปีที่แล้ว

    Great tutorial, thanks man

  • @erildojunior4358
    @erildojunior4358 3 ปีที่แล้ว +1

    You're awesome dude!!! thanks a lot!

  • @Jesanchez24
    @Jesanchez24 2 ปีที่แล้ว +1

    Excelente video, solo me toco investigar por aparte el tema de Route 53

  • @rishavraj7552
    @rishavraj7552 3 หลายเดือนก่อน

    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!

  • @gracecarrilloc
    @gracecarrilloc 3 ปีที่แล้ว +3

    How about adding several endpoints to the same domain?

  • @pikachu5223
    @pikachu5223 3 ปีที่แล้ว +2

    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

    • @bobcee8126
      @bobcee8126 3 ปีที่แล้ว +1

      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

    • @BeABetterDev
      @BeABetterDev  3 ปีที่แล้ว +1

      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

  • @princepatel6697
    @princepatel6697 2 ปีที่แล้ว +3

    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 ??

    • @VIKASSAINI007
      @VIKASSAINI007 2 ปีที่แล้ว

      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 🙂

    • @prasanjeetmohanty7632
      @prasanjeetmohanty7632 ปีที่แล้ว

      @@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...

    • @prasanjeetmohanty7632
      @prasanjeetmohanty7632 ปีที่แล้ว +1

      Nevermind, in google domain I needed to make an entry as "cname" as opposed to "A" record in route53 and it worked....

  • @foreach1
    @foreach1 8 หลายเดือนก่อน

    Great Video! Thanks!

  • @shogotsuchiya6030
    @shogotsuchiya6030 2 ปีที่แล้ว +1

    Thank you soooooo much! ありがとう!

  • @emredemir6637
    @emredemir6637 2 ปีที่แล้ว +1

    Thank you! It is still helpful :)

  • @Jxxxxxxx
    @Jxxxxxxx 3 ปีที่แล้ว +5

    Hi, nice tutorial! For how long are these certificates valid, and are they automatically autorefreshed after expiration?

    • @PaulPatico
      @PaulPatico ปีที่แล้ว

      Yes, AWS refresh them automatically after expiration, you do not need to do anything!

  • @battlenexustnmt
    @battlenexustnmt 3 ปีที่แล้ว +2

    whr is the link to setup a domain in ur description ?

  • @unlock-your-potential-888
    @unlock-your-potential-888 3 ปีที่แล้ว +1

    thank you so much. it's so helpful.

  • @EdchelStephenNini
    @EdchelStephenNini 9 วันที่ผ่านมา

    Thank you! :)

  • @danielcraig474
    @danielcraig474 ปีที่แล้ว

    Thank you!

  • @ezequielguerra8110
    @ezequielguerra8110 2 ปีที่แล้ว +1

    Maravilloso! Muchas gracias!

  • @Rauzul
    @Rauzul 2 ปีที่แล้ว +1

    Life saver.

  • @javascript_developer
    @javascript_developer ปีที่แล้ว

    great tutorial. thanks

  • @josecantero3500
    @josecantero3500 ปีที่แล้ว

    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.

  • @2truffies
    @2truffies 2 ปีที่แล้ว +1

    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.

    • @leonardox222
      @leonardox222 ปีที่แล้ว

      very good point!. same case, but my domain is managed by other provider

  • @lukavujeva6584
    @lukavujeva6584 9 หลายเดือนก่อน

    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.

  • @97pixels
    @97pixels ปีที่แล้ว

    Thanks a lot for the video. AWS docs are really terrible at explaining all these required steps.

  • @abrahamnzau254
    @abrahamnzau254 ปีที่แล้ว

    Hi, great tutorial
    How to I redirect http traffic to my subdomain to https?

  • @liamray2010
    @liamray2010 2 ปีที่แล้ว +1

    Nice tut! 10nx

    • @BeABetterDev
      @BeABetterDev  2 ปีที่แล้ว +1

      Glad you enjoyed Liam!

  • @brenoa.santos4493
    @brenoa.santos4493 3 ปีที่แล้ว

    Awesome! Thanks a lot.

  • @hunqiangng2511
    @hunqiangng2511 ปีที่แล้ว

    How to assign elastic ip address to APIGW

  • @damiandanev9271
    @damiandanev9271 3 ปีที่แล้ว

    Will this result in additional costs?

  • @vjp00777
    @vjp00777 2 ปีที่แล้ว

    Nice tutorial. How would this work if I need to use 3rd party/private certificate and not from ACM?

    • @PJudt
      @PJudt ปีที่แล้ว

      Import your 3rd party certificate into ACM

  • @vancedacc4629
    @vancedacc4629 ปีที่แล้ว

    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.

  • @SaketAnandPage
    @SaketAnandPage ปีที่แล้ว

    What if I am using a different DNS provider, They only allow ipv4 address in A Record.

  • @CariagaXIII
    @CariagaXIII ปีที่แล้ว

    you probably should put the api gateway behind cloudfront for security instead of api gateway upfront in route 53

  • @sergeyvaulin
    @sergeyvaulin 3 ปีที่แล้ว +2

    Fyi, who uses third party services you need just add CNAME instead of A record. It works for me.

    • @rajeev200385
      @rajeev200385 3 ปีที่แล้ว

      For third party domain names, do we need to update Route53 with CNAME?

  • @techenthusiast127
    @techenthusiast127 3 ปีที่แล้ว

    I don't see any option in my API dropdown in Configure API mappings. I followed everything right. The certificate were even issued correctly.

  • @ezeikel
    @ezeikel 3 ปีที่แล้ว +1

    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

    • @BeABetterDev
      @BeABetterDev  3 ปีที่แล้ว +1

      Hi Ezeikel, I haven't tried this but don't see why it wouldn't work!

    • @VIKASSAINI007
      @VIKASSAINI007 2 ปีที่แล้ว +1

      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 🙂

  • @Dima-bo7wz
    @Dima-bo7wz 2 ปีที่แล้ว

    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...

  • @sourabhdeshpande2112
    @sourabhdeshpande2112 25 วันที่ผ่านมา

    but this giving error to the Cloudflare

  • @aliosmanTr-n1m
    @aliosmanTr-n1m 3 หลายเดือนก่อน

    Yes i see you are world of warcraft player 😅

  • @kingofalps
    @kingofalps ปีที่แล้ว

    Thanks! very helpful

  • @justinyang733
    @justinyang733 6 หลายเดือนก่อน

    Thank you!

  • @bobdpa
    @bobdpa ปีที่แล้ว

    Awesome. Thanks!