React App on AWS S3 with Static Hosting + Cloudfront | Practical AWS Projects #1

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มี.ค. 2021
  • Learning by doing is the best way to make things stick. In this video, I walk you through how to deploy a Hello World React app to AWS using S3, CloudFront, ACM, Route53, and more! Using this approach, you can build a simple react based application that can scale to hundreds of thousands of users. This is a walkthrough video with thorough explanations of each step.
    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...
    How to set up a domain on AWS - • How to register and se...
    S3 bucket policy - gist.github.com/beabetterdevv...
    📚 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
    #S3

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

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

    Check out the next Practical Project here: th-cam.com/video/NM4Vd7fpZWk/w-d-xo.html

    • @NZTechArc
      @NZTechArc 10 หลายเดือนก่อน +1

      You have the best Tutorial, but I do not understand why you would have 2 A records and 2 distributions, into 2 different buckets, why not just 1 A record and 1 www CNAME record in route 53 to the 1 distribution and from the distribution to the bucket??? Could you please comment on this?

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

    Awesome video mate. Precise and to the point. All AWS videos should be like this!

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

    Awesome! This one was actually one of my interview questions! And I found such a nice solution to that! Great work man!

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

    So smooth. A spectacular way of teaching.

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

    Crisp clear tutorial. Very helpful and step by step instructions helped me to follow along, thanks much for great tutorial put together.

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

    one of the most useful tutorials I've ever watched

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

    Thank you so much, I was feeling lost, glad that this video came at the right time. Very well explained, now i can continue my project work again.

  • @aranlufthansa45
    @aranlufthansa45 ปีที่แล้ว +12

    Trying hard to break into a new tech career out of college and tutorials like this help tremendously. It’s tutorials like this created by people like you that make me truly feel like I am standing on the shoulders of giants like you. Thx

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

    One of the best tutorials I've watched

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

    Thanks, man. Going through a demanding course and I am a pretty new to the field. I was stressing. I feel way better now.

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

    Thank you so much, I just used your tutorial to submit a project half an hour ago!
    Two things to take into consideration:
    1- To invalidate a distribution use /* only, I used /* /** and it took me hours getting stuck with a dummy index.html till I tried /*
    2- Amazon CloudFront distributions requests the AWS certificate to be in the US East (N. Virginia) Region to create a distribution, otherwise you can see no certificate!
    Since these two issues took a long time to fix, I thought I would share them to help!

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

      Both things happened to me exactly as you say. Thanks so much. Author should pin this comment.

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

    Amazing tutorial. I'm here 2 years later and everything works. Thank you

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

    This is the best tutorial on the topic I found, thank you very much! It worked wonderfully for my portfolio

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

    I followed every step and everything worked well. Thank you for this concise and very weel explained tutorial :)

  • @msdundars
    @msdundars 3 หลายเดือนก่อน +2

    After 2 years still the best and the most accurate content on the topic!

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

    bro i love you. i followed this tutorial and it works perfectly , i was struggling alot before

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

    Attention: You MUST make the certificates in Us-East-1, it is the only region Cloudfront can pull from. I made mine in Us-East-2 and it was telling me to use my EC2 (?) instance and gather a PEM file and private key... which I didn't even have.... went ahead and just made them in Us-East-1 saved me the hassle...

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

      Yeah it's OK if you are in California or Ohio since you're using cloudfront

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

    This was a super helpful video! My front end is definitely up and running because of it. One thing I am still struggling with, however, is getting my frontend (which this video helped me deploy successfully) connected with my elastic beanstalk server deployed separately. I can't seem to find much out there on how to get them to communicate. But I see alot of people mention that this is possible with an s3 + cloudfront + route53 react frontend and eb deployed node/express server. Thank you!

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

    Great content. Thank you for this practical tutorial. This will be immensely helpful to lot of geeks

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

    Probably the best tutorial on TH-cam about hosting static websites on Amazon S3 and CloudFront.

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

    Beo explained well, and cleared all my doubts to deploy React js in Clod front

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

    Awesome content! Everything is clear and just works!!!

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

    Amazing tutorial bro! Thank you.

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

    Best tutorial ever! Thank you so much for your video :)

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

    This is extremely awesome great content, lifesaver. Thanks for this.
    I actually had searched and searched for ways to host my react app on AWS for a long time now. Thanks really for this.

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

      Thanks so much Godstime, glad you enjoyed!

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

    Loved this tutorial. Straight to the point and great explanation.

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

      You're very welcome Fazal!

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

    Couldn't be more clear and useful. Got up and running in minutes with your help.

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

      So glad this was helpful!

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

    I am so grateful for this tutorial! You explained everything so perfectly, at the same time keeping it super simple for beginners to understand. Job done well!

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

      Thanks so much fort he kind words Ayushi!

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

    Great effort, it valued back to me on time and learning..

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

    Was looking forward to this ever since the last video!

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

    My dude, this is great content! Thank you.

  • @vivekgupta309
    @vivekgupta309 8 หลายเดือนก่อน +1

    very good AWS video series !!! learning a lot from you !!! and very easy to understand English !!!

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

      Thanks vivek!

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

    PURE GOLD content...that too FREE!!!

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

    This is the only video on TH-cam you need see to answer to the question "How to properly deploy a static web site on AWS"

  • @HimanshuVerma-zn7cb
    @HimanshuVerma-zn7cb 2 ปีที่แล้ว +1

    Very precise, Informative and Eloquently explained. Excellent Stuff . Thanks a bunch

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

      You're very welcome Himanshu!

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

    Simply beautiful!!!

  • @andreirusulica
    @andreirusulica 26 วันที่ผ่านมา +1

    nice work mate, appreciate the content! just a single note to add to it: I think it may be cleaner to have 2 A routes, one for www and one for the non www that point to the same cloudfront distribution. There is no need for 2 buckets and 2 cloudfront distributions.

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

    Damn, you single handedly contributed so much to my hosting that was actually able to pull up my website for a big project 30 min before the deadline, glad i found this vid, keep producing more content like this

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

      Thanks so much Arne and I'm glad I was able to help!

  • @stephenfoster8543
    @stephenfoster8543 9 หลายเดือนก่อน +1

    Dude, excellent video. Thank you so much.

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

      You're welcome!

  • @ShahzadRasul-uo7gu
    @ShahzadRasul-uo7gu ปีที่แล้ว

    Amazing video! Really enjoyed this one!

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

    Great lectures. Great teacher.

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

    Thank you for your help with this video. I hope you always have a nice days.

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

      Glad I can help and same to you!

  • @Ravi-my1cl
    @Ravi-my1cl ปีที่แล้ว

    Thanks for the amazing tutorial

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

    Dude, this is a spectacular tutorial. Everything was explained so well and concisely. I'm not ever one to post a comment but I thought I needed to let you know what a great job you did. Got my site up and running thanks to you!

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

      Thanks for such a kind comment Michael. I really appreciate the support and glad the video was able to help you to set up your project!
      Cheers,
      Daniel

  • @mayurb-xf6ll
    @mayurb-xf6ll ปีที่แล้ว

    THANK YOU BRO IT WAS A BIG HELP

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

    thank you so much, you helped me convert my simple 1 bucket static site into two urls and give it a certificate.

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

    Excellent stuff!
    If you could post more of these practical videos, that will be wonderful. Thank you.

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

    Great video. Thanks for making it

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

    You're amazing men! so simple

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

    SOA - Start of Authority. Thanks for all you do, bro.

  • @sumitdange2507
    @sumitdange2507 9 หลายเดือนก่อน +1

    loved it! very simplified it is! ❤🙌

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

      Glad it was helpful!

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

    First time hitting the like button for an AWS video. Thanks

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

      Thanks debnath! Glad you enjoyed.

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

    Very nice job, no one can explain better than this, loved it

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

    Dude this is an excellent tutorial - Well done!

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

      Thanks Shyam! Glad you enjoyed :)

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

    Love you brother for such a detailed tutorial :) Keep making them please.

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

      Thank you so much Moinul!

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

    This was the third tutorial I watched about S3 static hosting and the best of all! Now my system is up and running

  • @divyareddy419
    @divyareddy419 9 หลายเดือนก่อน +2

    Im restarting my career after a long break, thanks to your tutorials, these are helping me greatly, thanks you so much

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

      Happy to help!

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

    Thanks boss, that was helpful! Now I got my own MEAN Stack App hosted with my own domain Name 😊

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

    Excellent tutorial. Thank you!

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

    This is exactly what I was looking for. I need more projects so I can learn the console. Certification won't get me a j.o.b. without experience. Thank you so much. This is brilliant!

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

    great video, well explained, I enjoyed it

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

    Thank you, buddy, you video was super helpful to me to fix an issue related to this. Much much appreciated.

  • @dasunsamarasiri2987
    @dasunsamarasiri2987 9 หลายเดือนก่อน +1

    excellent tutorial !!!. Thank you !!!

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

      Glad you liked it!

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

    Wonderful video, thank you very much. It might be good to also do one on undoing the CloudFront aspect; I got sick of the long propagation times whenever I needed a hotfix for my site and eventually just nixed CloudFront entirely.

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

    Just here to say THANK YOU VERY MUCH 😄

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

    Awesome ! Great video!

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

    superb bro great teacher of aws

  • @sureshandem780
    @sureshandem780 10 หลายเดือนก่อน +1

    excellent great man , thank you it was very clear explanation step by step..!

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

      You're welcome!

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

    Thank you for this video. Worked for me !

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

      You're very welcome Rohini!

  • @Street.Credit
    @Street.Credit 2 ปีที่แล้ว +2

    Str8 up best guide to getting everything working properly! We we able to get a new Street Credit website up and running after technical difficulties watching other tutorials. Appreciate you my guy!

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

      Thank you and glad it helped you to set up your website!

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

    Best video and best content ever. Thank you so much.

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

    Awesome as always!

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

    Love the channel, just watched the videos on the upcoming projects so looking forward to the stock market project, want to switch out the stock market call to something else

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

      Thanks Dean! I'm quite excited to put that together myself. I should have it out in the coming months. Cheers

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

    Dude, very well explained. Super

  • @otifelix
    @otifelix 8 หลายเดือนก่อน +1

    Thank you so much this video saved me over $100 because i struggled with this for a long time

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

      Glad this helped!

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

    Fantastic Video, thanks!

  • @CS-to5ne
    @CS-to5ne ปีที่แล้ว +1

    thank you so much!
    great content

  • @jorool1988
    @jorool1988 9 หลายเดือนก่อน +2

    Great video.
    BTW, you don't need two distributions for www and naked domain. You can add multiple domains to the same distribution. 😉

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

    Thanks for the cloud front invalidation part. I rebuild my site dozensof times yesterday, deleted and created a few new distributions, reassigneing the DNS, even was thinking my static website code had issues....
    Now everythink works and next time I have to wait longer or purge the cache through invalidations... I hope i dont forget /**/*

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

    This is really good and useful, cheers!

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

      Thanks Pawel! Glad it was helpful.

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

    Great content! Thanks!!!

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

    Excellent content/tutorial

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 2 ปีที่แล้ว +1

    You're the best. Thanks for the video

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

    Thank you so much!! This is my first time deploying a react js app and was completely lost.

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

    Thank you. You are amazing!

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

    Very detailed video. awesome tutorial video.

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

      You're very welcome niraj!

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

    this guy has a video for everything! :0

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

    amazing, thank you for this!

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

      You're very welcome Mike!

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

    awesome tutorial. very nicely explained.

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

    Amazing work!

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

    Ur a life saver. Perfect video. Please make some more project videos which are helpful in getting a job. Thanks heaps.. cheers

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

      Coming soon Jaman!

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

      @@BeABetterDev bro just wondering, does Issuing Certificate in cloud-front costs anything? Thanks

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

    Great tutorial! Thanks!

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

    Very good tutorial easy to follow and explains process nicely! One thing to note is if your bucket is in a different region as the video, you still have to make sure your certificate is in the region of east Virginia or else the certificate won’t pop up on cloud front. Other than that great tutorial thanks!

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

      Thanks for pointing this out Sam!

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

      @@BeABetterDev Hey just out of curiosity, what if I no longer want to deploy my website? Would I delete the hosted zone on Route 53, or is there an easier way to temporary disable hosting?

  • @user-tm2pr4eh4e
    @user-tm2pr4eh4e 7 หลายเดือนก่อน

    Thank you for your fantastic TH-cam tutorials! Your teaching style has been incredibly helpful in my learning journey. Grateful for your expertise!
    I also have a question: How to connect React.js build in S3 bucket to my Java Spring Boot application? How to make them communicate?
    Best regards,

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

    Great video, Just one thing to note. You must create your Certificates in the North Virginia zone.

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

    Great tutorial!

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

    top tier tutorial. so helpful.

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

    Very helpful video

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

    Very useful - Thanks !

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

    Thank You. One of the best tutorial - Very well explained. Please will you let me know about the cost factors of Route 53 besides yearly fee for DOMAIN NAME registration? ( In case of multiple websites)