Custom Domain Name with AWS API Gateway | Step by Step Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 มี.ค. 2021
  • 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.beabetterdev.com/cour...
    📚 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

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

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

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

  • @amirhossain2k9
    @amirhossain2k9 7 หลายเดือนก่อน

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

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

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

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

  • @ckworton
    @ckworton 7 หลายเดือนก่อน

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

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

    one of the bet videos from this channel.

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

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

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

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

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

    Fantastic tutorial, thanks for the upload!!

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

    Maravilloso! Muchas gracias!

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

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

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

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

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

    Great tutorial, thanks man

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

    This was extremely helpful, thank you!

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

    Great Video! Thanks!

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

    great tutorial. thanks

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

    Awesome! Thanks a lot.

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

    Thanks! very helpful

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

    amazing man, it worked great :)

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

    This video has helped me so many times.

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

      I even use it myself as a reference! :)

  • @bobdpa
    @bobdpa 10 หลายเดือนก่อน

    Awesome. Thanks!

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

    How about adding several endpoints to the same domain?

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

    thank you so much. it's so helpful.

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

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

    Thank you!

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

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

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

    Thank you! It is still helpful :)

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

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

  • @josecantero3500
    @josecantero3500 10 หลายเดือนก่อน

    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.

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

    Thank you soooooo much! ありがとう!

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

    Will this result in additional costs?

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

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

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

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

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

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

    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.

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

    Nice tut! 10nx

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

      Glad you enjoyed Liam!

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

    How to assign elastic ip address to APIGW

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

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

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

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

  • @abrahamnzau254
    @abrahamnzau254 11 หลายเดือนก่อน

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

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

    Life saver.

  • @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 ปีที่แล้ว

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

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

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

    • @PaulPatico
      @PaulPatico 10 หลายเดือนก่อน

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

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

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

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

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

  • @2truffies
    @2truffies ปีที่แล้ว +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

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

  • @ezeikel
    @ezeikel 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

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

    • @VIKASSAINI007
      @VIKASSAINI007 ปีที่แล้ว +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 ปีที่แล้ว

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

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

    Thank you!