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

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 425

  • @BeABetterDev
    @BeABetterDev  3 года назад +10

    Check out the next Practical Project here: ruclips.net/video/NM4Vd7fpZWk/видео.html

    • @NZTechArc
      @NZTechArc Год назад +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?

  • @arwamais
    @arwamais 3 года назад +37

    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.

  • @mykolaskucinskas9473
    @mykolaskucinskas9473 2 года назад +3

    Probably the best tutorial on RUclips about hosting static websites on Amazon S3 and CloudFront.

  • @msdundars
    @msdundars 10 месяцев назад +2

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

  • @bytesCraft
    @bytesCraft 2 года назад +3

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

  • @arnekaufmann2825
    @arnekaufmann2825 3 года назад +25

    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  3 года назад +2

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

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

  • @Greenthum6
    @Greenthum6 2 года назад +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 Год назад +3

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

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

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

  • @lykiamusic
    @lykiamusic 2 года назад +1

    one of the most useful tutorials I've ever watched

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

  • @andreirusulica
    @andreirusulica 7 месяцев назад +2

    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.

  • @peterharrington4777
    @peterharrington4777 10 месяцев назад

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

  • @nikhilsharma1742
    @nikhilsharma1742 3 года назад +11

    Hello Sir, I am a Developer from India and I find your videos extremely awesome and your content is also great. Please also help us for other practical projects on AWS also. And Thankyou So much for delivering this content.

    • @BeABetterDev
      @BeABetterDev  3 года назад +3

      Hi Nikhil, thanks very much for your kind words. My next video is coming out on Monday and its a Docker Flask App + Aurora Serverless. It's my second in the 'Practical Projects'. Cheers.

  • @AnonyMole
    @AnonyMole 3 года назад +1

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

  • @rammstein272
    @rammstein272 3 года назад

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

  • @mithunda50
    @mithunda50 3 года назад +1

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

    • @BeABetterDev
      @BeABetterDev  3 года назад

      Thanks debnath! Glad you enjoyed.

  • @hungdoan9148
    @hungdoan9148 9 месяцев назад

    One of the best tutorials I've watched

  • @samclark4496
    @samclark4496 3 года назад +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  3 года назад +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?

  • @pypelyncar
    @pypelyncar 3 месяца назад

    relevant, neat, efficient ! this video helped me out so much, I have to come here and say THANK YOU !! you are the man !

  • @morgeegee277
    @morgeegee277 2 года назад +1

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

  • @mhollis1231
    @mhollis1231 3 года назад +38

    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

  • @ngonimaphosa2176
    @ngonimaphosa2176 Год назад

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

  • @shavis4811
    @shavis4811 Год назад

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

  • @godfreymai6257
    @godfreymai6257 13 дней назад

    Good work needs recognition. Thanks mate!

  • @genefreak
    @genefreak 11 месяцев назад

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

  • @vivekgupta309
    @vivekgupta309 Год назад +1

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

  • @vil3n80
    @vil3n80 Год назад

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

  • @otifelix
    @otifelix Год назад +1

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

  • @WhiteWolfBlues
    @WhiteWolfBlues 7 месяцев назад

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

  • @matrixtoogood5601
    @matrixtoogood5601 3 года назад +2

    Was looking forward to this ever since the last video!

  • @knightproduction215
    @knightproduction215 4 месяца назад

    It was a long long journey man.
    but it's done now.
    I had a major problem that the NS was not the same form godaddy to aws.
    Thanks a lot.

  • @SKR1912
    @SKR1912 Год назад

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

  • @nehabansal370
    @nehabansal370 6 месяцев назад

    Was trying to build this end to end solution. This solution really helped. Thanks!!

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

  • @luiscortes6563
    @luiscortes6563 2 года назад +1

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

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

  • @HimanshuVerma-zn7cb
    @HimanshuVerma-zn7cb 2 года назад +1

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

  • @aritra1414
    @aritra1414 3 года назад +1

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

  • @Malcolm777-i
    @Malcolm777-i 2 года назад

    So smooth. A spectacular way of teaching.

  • @shyammohabir8283
    @shyammohabir8283 3 года назад +1

    Dude this is an excellent tutorial - Well done!

    • @BeABetterDev
      @BeABetterDev  3 года назад

      Thanks Shyam! Glad you enjoyed :)

  • @sheynjila2457
    @sheynjila2457 2 года назад +1

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

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

  • @midtownmadness4585
    @midtownmadness4585 Год назад +5

    I think there's no need to enable public access for the S3 buckets. Just add an access policy that allows the Cloudfront ARNs to do `getObject` on the respective buckets and you're all set. No need to expose the bucket publicly.

  • @password301992
    @password301992 2 года назад +1

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

  • @justrelax3012
    @justrelax3012 2 года назад +1

    This man is a hero

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

  • @fazalmehmood6802
    @fazalmehmood6802 2 года назад +1

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

  • @caiyu538
    @caiyu538 Год назад +1

    Great lectures. Great teacher.

  • @amitvlog-viralnews
    @amitvlog-viralnews 3 года назад +1

    superb bro great teacher of aws

  • @VaurionX
    @VaurionX 4 месяца назад

    Very helpful video, thank you very much for showing how to do all of this.

  • @gtstride
    @gtstride 3 года назад

    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  3 года назад

      Thanks so much Godstime, glad you enjoyed!

  • @gdyung2
    @gdyung2 Год назад

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

  • @jaggar28
    @jaggar28 2 года назад +1

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

  • @SuryaExperiance220
    @SuryaExperiance220 3 года назад

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

  • @giriphd
    @giriphd 3 года назад +1

    Dude, very well explained. Super

  • @gavinmack202
    @gavinmack202 3 года назад +1

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

  • @thereds32
    @thereds32 2 года назад

    Just here to say THANK YOU VERY MUCH 😄

  • @ShahzadRasul-uo7gu
    @ShahzadRasul-uo7gu 2 года назад

    Amazing video! Really enjoyed this one!

  • @SyedRiyadhulKarim
    @SyedRiyadhulKarim 10 месяцев назад

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

  • @aayushgore4245
    @aayushgore4245 2 года назад

    this guy has a video for everything! :0

  • @piegpa
    @piegpa 3 года назад +2

    This is really good and useful, cheers!

    • @BeABetterDev
      @BeABetterDev  3 года назад

      Thanks Pawel! Glad it was helpful.

  • @18Horses
    @18Horses 2 года назад +1

    One of the best tutorials I found on youtube! You explain everything very well and it helps that you have the same voice as MoistCr1tical hehe :D

    • @BeABetterDev
      @BeABetterDev  2 года назад

      Thank you so much for the kind words

  • @stephenfoster8543
    @stephenfoster8543 Год назад +1

    Dude, excellent video. Thank you so much.

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

  • @sumitdange2507
    @sumitdange2507 Год назад +1

    loved it! very simplified it is! ❤🙌

  • @ibgib
    @ibgib 2 года назад +1

    Thanks!

    • @BeABetterDev
      @BeABetterDev  2 года назад +1

      Thank you so much bill for your generosity!

    • @ibgib
      @ibgib Год назад

      @@BeABetterDev I'm looking to renew the certificate here a year later, and I am using Namecheap. Apparently my bright idea was to delete the CNAME record for validation and I am having a hard time finding the verification record info (e.g. around 23:00 in this video). Is there a way to recover these verification records, or do I have to create a new certificate? (EDIT: Nm! found the entries in the certificate details, hidden due to my silly viewport being small...now if I could just push a validation check instead of waiting for their automated system... Thanks again!)

  • @_HariHaranR
    @_HariHaranR Год назад

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

  • @jorool1988
    @jorool1988 Год назад +3

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

    • @vmerino04
      @vmerino04 6 месяцев назад

      This is true. I don't think you need two buckets either

  • @andrez76
    @andrez76 3 года назад

    My dude, this is great content! Thank you.

  • @hongz1787
    @hongz1787 2 года назад

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

  • @nirajshakya7075
    @nirajshakya7075 3 года назад +1

    Very detailed video. awesome tutorial video.

  • @elleryfamilia8291
    @elleryfamilia8291 3 года назад +1

    Excellent tutorial. Thank you!

  • @sandeepverma7712
    @sandeepverma7712 2 года назад

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

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 3 года назад +1

    You're the best. Thanks for the video

  • @GeoffreyEngelbrecht
    @GeoffreyEngelbrecht 3 года назад +9

    Great tutorial! Transferred my website yesterday following your instructions and everything worked smoothly. One comment/question: Rather than setting up a second S3 bucket (and subsequent Cloudfront distribution for my website without the www and redirecting it to the other I just left the A record in Route 53 for my URL without www which points to the www entry. This is how my website was setup previously when I was hosting it elsewhere and I found this also works with this setup (ie if you enter my URL without www in the web browser DNS redirects this to my URL with www). I wonder if the costs are less doing it this way than having two S3 buckets and Cloudfront distributions? At the very least it halved the process of setting up the website.

    • @ordaniel7699
      @ordaniel7699 2 года назад

      I totally agree. I hope he answers.

    • @furqonmauladani1544
      @furqonmauladani1544 2 года назад

      I believe that it would lessen the cost. Because you don't use second S3 bucket and second Cloudfront, you don't paid for GET request to CloudFront and S3. You only paid first S3 bucket, first Cloudfront, and Route 53 request cost.
      But this is a simple and great tutorial that I found. I learn more with this video.

    • @karlang2637
      @karlang2637 2 года назад

      When you say "I just left the A record in Route 53 for my URL without www which points to the www entry", is this done at 17:37 mark where instead of choosing "Alias to S3" for "Value/Route traffic to" field, you picked "Alias to another record hosted in this zone"? Basically, when creating A record for example.com, instead of pointing to S3, you point to www.example.com, which already points to S3. Is my understanding correct?

    • @GeoffreyEngelbrecht
      @GeoffreyEngelbrecht 2 года назад

      @@karlang2637 Yes that’s right

  • @CoderDad
    @CoderDad 3 месяца назад

    Gotcha! - As of August 2024 - The certificate has to be created in Virginia East 1 to be picked up in the Distribution. If you create it in another zone it won't appear in the dropdown.
    Thank you, got my first aws page up and running.

  • @rohini_mohan
    @rohini_mohan 3 года назад +1

    Thank you for this video. Worked for me !

  • @ryanwendel6115
    @ryanwendel6115 3 года назад +4

    What are the cost implications of creating two distributions? Is there no way to force a redirect from within CloudFront?
    Great video, btw.

  • @TheOfficialMovmnt
    @TheOfficialMovmnt 11 месяцев назад

    Amazing tutorial bro! Thank you.

  • @omkarhalankar1729
    @omkarhalankar1729 3 года назад

    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

  • @sureshandem780
    @sureshandem780 Год назад +1

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

  • @jszclaptone4042
    @jszclaptone4042 2 года назад

    You're amazing men! so simple

  • @dasunsamarasiri2987
    @dasunsamarasiri2987 Год назад +1

    excellent tutorial !!!. Thank you !!!

  • @nirmesh44
    @nirmesh44 3 года назад +1

    awesome tutorial. very nicely explained.

  • @marcovelazquez5689
    @marcovelazquez5689 2 года назад +1

    Excellent content/tutorial

  • @antonioguiotto3487
    @antonioguiotto3487 3 года назад +2

    Hi, very practical and clear tutorial, like all the others that you make.
    Thanks for sharing.
    I 'd like perhaps someone can just clarify what is the purpose of the www in the domain, and the double buckets, distributions and domain records.. I mean I kinda understand the reason but not really.
    Keep it up!

    • @sorover111
      @sorover111 Год назад

      Im trying to figure this out too.. I think it is something that is specific to having Route53 be your DNS .. But yeah it would make sense at least to me to just have 1 bucket, and CNAME the www. subdomain to the root domain.. idk

  • @gorannogic2955
    @gorannogic2955 2 года назад

    great video, well explained, I enjoyed it

  • @7alexopoulos
    @7alexopoulos 2 года назад +1

    Really amazing tutorial!!!

  • @krishnaraj2263
    @krishnaraj2263 2 года назад

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

  • @caldayham
    @caldayham 2 года назад +1

    You are cracked, may your lows be bearable and your highs euphoria

  • @1111ah
    @1111ah 2 месяца назад

    Such a great video. Thanks!!!

  • @TheEchinox
    @TheEchinox Год назад

    Simply beautiful!!!

  • @thisisstupid956
    @thisisstupid956 3 года назад +1

    This video saved my day!

  • @bryanchuinkam3506
    @bryanchuinkam3506 2 года назад

    Great video. Thanks for making 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.