AWS Tutorial - Website hosting with S3, Route 53 & Cloudfront using Namecheap domain

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • NAMECHEAP UPDATE!!!
    Namecheap no longer allows you to add host records if you're using a custom DNS. The workaround is pretty easy though. Don’t follow the video guide between ~2:49 - 4:15 which is the part where we add the host record to namecheap. Once you reach the end of the video, follow these steps:
    1) Go to AWS Certificate Manager (ACM) within your AWS console
    2) Click on the certificate in question
    3) The next screen should have some Cards such as Certificate Status, Domains, Details, etc. Within the Domains card you'll see a button for "Create records in Route 53". Click that.
    4) The next screen will ask you which domain you’d like to apply the records to. Choose which one you want and click “Create records”.
    That’s it!
    ~~~~~~~
    This is the ultimate and fully comprehensive 2022 guide to setting up your own static website with a domain purchased through Namecheap and hosting set up through Amazon Web Services using S3, Route 53 and Cloudfront.
    I'll take you through every step which includes:
    1) Authenticating your Namecheap domain with Amazon through Amazon's certificate manager.
    2) Creating your Amazon Route 53 nameserver records and inserting them into your Namecheap domain account.
    3) Creating your Amazon S3 buckets and setting them up for static website hosting and redirects.
    4) Creating your Amazon Cloudfront distrubution which includes a crucial piece of information that many guides neglect to mention.
    5) And redirecting your domain traffic to your Cloudfront distribution.

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

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

    Bro just casually slipped a 19 min Power Tutorial that sums up everything there majorly is about Hosting sites on AWS.
    big thanks

  • @aeronesto
    @aeronesto 6 หลายเดือนก่อน +2

    I was able to follow along without issues almost two years later! It's 12-01-23
    Wow, this would've been a headache without this video! Thank you!

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

    I can't even tell you how much you helped me out with this video!! Your work is greatly appreciated, man. Thank you!! 🙏🏾🙏🏾

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

    thanks so much! you were completely right about other tutorials being hung up at that part. you saved me weeks.

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

    Still applicable in 2024! You're a life saver, it helped me learn some Basic AWS 🙏

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

    This is probably the best video for this topic, exactly what i needed ❤❤❤❤❤

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

    I was stuck on this for over a week! Thank you so much for this video!

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

    Thank you for this. Extremely helpful. I think you have to manually input your own permission policy now but the video was so helpful. Saved me HOURS and HOURS.

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

    never enjoyed a tutorial that much xD your comments are awesome :"D

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

    Excellent Video, Thank you Christopher!!

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

    WOW!! You really saved me days of searching this solution that you have shared in the origins tab, even namecheap support team couldn't help get it sorted :) Hats off to you!

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

    Thanks Christopher, saved my day ! was very easy to follow and helped to get going ! Cheers !

  • @user-kd1gq7yw3d
    @user-kd1gq7yw3d 10 หลายเดือนก่อน

    Hey, huge thanks for this! Watching some other videos was a total nightmare. Your tutorial actually makes sense. After watching it, I noticed some changes and features on AWS pages, and even though there were still some issues, I managed to figure them out with a bit of extra research and troubleshooting. It's unbelievable how many tutorials are outdated in Aug 2023, but yours is up-to-date, and it's pure gold. Changes only OAI settings in CloudFront. Stay awesome!

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

      Thanks! Glad it was somewhat current. And good on you for doing a bit of research too 💪

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

    Thank you so much! An updated, straight to the point video saved me. Was stuck for an hour of watching and restarting with all the other crummy vids haha

  • @meow-jd6qb
    @meow-jd6qb 17 วันที่ผ่านมา

    super grateful for your help brotha❤

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

    Awesome, exactly what I needed :D Thank you.

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

    wove, you are amazing brother. i have been stuck here for almost a month. thanks alot.

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

    1 year after, this's still working perfectly. I struggled the day before finding this video trying to set up every thing with AWS and a domain name from Namecheap. Thanks

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

    one of the awesome crystal clear, and complete video... @cristopher you rock!!

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

    You solve all my dudes. Really thank you bro. Nice explication and step to step. 👏

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

    Indeed the video is the best you can find. Thank you very much

  • @labrat-0171
    @labrat-0171 ปีที่แล้ว

    I was lost before watching this vid, thanks a bunch mate. Algorithm!!! do your thang

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

    I never comment on videos usually. But thank you so much for this, that's the only valid tutorial i've seen, and i've seen a lot !

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

      It's comments like these that keep us creators going! Thank you so much. I'm glad it helped you!

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

    Very informative tutorial.

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

    thank you so much amazing tutorial !! already like and i subscribe.

  • @rakeshchauhan-op8qw
    @rakeshchauhan-op8qw ปีที่แล้ว

    This is quality. I liked your jokes and it was very accurate

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

    Thanks friend, I successfully launch my first AWS based website. thousands of thanks

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

    This is absoolute gold! 🚀

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

    Priceless vidéo ! Thank you 👍

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

    Dude, thank you so much for this. Watching some of these other videos has been pure hell on earth. Thank you for making a video that actually makes sense. There's been some slight variations and features added in the AWS pages since this video, but I was able to still figure it out with some minor extra troubleshooting/research. Cant believe how many I watched that just totally disregarded connecting via https among other things. This video is gold. Cheers!

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

      Thanks so much for this amazing comment 💪. Glad I was able to shine some light on it

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

      True

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

      @@ChristopherPhillipsDev do we have to have the bucket name same as of domain?

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

    You helped me a lot, thanks man...
    Have a question, if i want to do some change just save the files in the bucket and its all?

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

      If you're just talking about the website content you want to serve, yep!

  • @colossuselka-zc7hb
    @colossuselka-zc7hb 8 หลายเดือนก่อน

    great great video! thank you!

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

    Thank you so much!!!!

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

    You save me a lot of time!!!, thanks a loooott!!!!!

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

    Welcome back sensei 😁

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

      haha thanks Joe. Maybe not in the context you were hoping but this was more of a reminder guide for me in the future. And if I can help others avoid a headache, I should make my notes public :)

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

      @@ChristopherPhillipsDev Very interesting and thank you for sharing your notes with us !!!! It doesn't matter if it's about c programming , keep going Christopher and see you later in another video ;) !

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

    Really helpful

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

    After so many tries. i finally hosted my 1st website. Thanks Christopher. If you ever happen to come to Mumbai, India. I'll host you for free. All meals and bed to sleep in.. :-).. Cheers to you

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

      This makes me really happy to hear! I'm glad I was able to help you. Congrats on your site launch!

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

    Thank You !!!

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

    oh man thank you very very very much you save my Time

  • @user-ov3rw3dn7u
    @user-ov3rw3dn7u 6 หลายเดือนก่อน

    Hi , can you please explain same thing ,if we have to only implement cloudfront in pre-working website DNS on Godaddy already managed hosted in AWS using . Allready using L.B before connecting to EC2 instance for our application.

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

    Thank You for this Tutorials..

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

    Excellent

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

    Great stuff. I had previously set up AWS hosting for a few static sites but more recently when attempting to do it again I got stuck so this helps a LOT! One thing I noticed is that there is no reference to 'Bucket Policy' - is that redundant? I guess I'll find out soon enough as I'll be using your method shortly with a new domain 🙂

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

      Be sure to check out the description. I've added some info there that pertains to namecheap

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

    Thank u so much

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

    amazing thank you , save my live

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

    Great tutorial! Thank you for sharing. I was wondering if you also know how to set up a custom email address with a service like Zoho using this AWS setup.

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

      Hi Jack! Glad you liked it. As for your question, I'm sorry, I do not.

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

      @@ChristopherPhillipsDev No worries. I think I may have figured it out in theory. I’ll follow up with the answer if I manage to set it up in practice : )

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

      Hi, I figured it out in practice.
      I was originally attempting to use Namecheap as the registrar, Zoho for the email, and AWS S3 for the hosting with a CloudFront distribution. I failed to figure out how to set this up.
      However, once I transferred my domain name over to AWS, Route 53, and set up hosting in an S3 bucket with a Cloudfront distribution over HTTPS, I was able to easily set up email for my domain name using AWS Workmail.
      The tutorials I followed are here:
      th-cam.com/video/mls8tiiI3uc/w-d-xo.html
      th-cam.com/video/g3nDQ0-jxSU/w-d-xo.html

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

    Hi Chris, thanks so much for this tutorial! You saved me tons of hours with this. Just curious, I have made some changes to the nextjs/react codes, rebuilt, and updated my S3 bucket. However the linked custom domain that I set up previously seems to not respond to the changes I made in the codes. Do I have to delete and redo everything just to update my website? Much appreciated once again!

    • @ChristopherPhillipsDev
      @ChristopherPhillipsDev  7 หลายเดือนก่อน +1

      So you made changes to your code and uploaded the changes to the bucket and are not seeing the results? If that's the case, it might just be propagation timing. Since i'm responding to your comment you made 16 hours ago, has anything happened since? I wouldn't be able to offer much additional help but I hope you sorted it out!

    • @MyPodie
      @MyPodie 7 หลายเดือนก่อน +1

      @@ChristopherPhillipsDev so apparently it still doesn't change for me on my end but people in different areas do see the change. So I guess it's the cache thing that's messing this up? Thanks for getting back to me!

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

      @@MyPodie I’m not sure and I couldn’t offer effective advice since it could be anything and not just caching. I wouldn’t think that would take this long. Maybe try incognito mode or a different device?

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

      @@ChristopherPhillipsDev I've figured it out! Just head over to the *Invalidation* tap of the desired distribution, and create an invalidation by adding '/*' inside the *Object Paths* to force Cloudfront to stay up to date with everything inside the S3 bucket. Appreciate the help Chris and please do keep up the good works. The tutorial was super helpful! 🙏

    • @ChristopherPhillipsDev
      @ChristopherPhillipsDev  7 หลายเดือนก่อน +1

      @@MyPodie nice! Congrats! Glad you were able to solve it.

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

    just wondering in what situation you would use s3 storage to host instead of amplify?

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

      I don't have experience with amplify so I couldn't offer and feedback

  • @jomavillanueva4549
    @jomavillanueva4549 11 วันที่ผ่านมา

    For anyone having trouble displaying the website, I still had to add NS Records in NameCheap (Advanced DNS) of the domain, you can remember that in th-cam.com/video/Bmuoqo_JY4g/w-d-xo.html you have 4 NS Records, create 4 of those in the Host Records of NameCheap, Type: "NS Record", Host: "www", values: get from your Route 53 record (you can include the .), ttl: automatic
    After that, you should have no problem

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

    I LOVEEEE UUUUU

  • @user-li9es1eq1c
    @user-li9es1eq1c 2 ปีที่แล้ว

    I was stuck in namecheap for 2 weeks, since I don't know the value of DNS configuration is the CNAME's name in SSL certificate, that make DNS validation pending for 2 weeks. I read many docs and watch several youtube. Sad to see your video until now.

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

      I'm sorry it was difficult for you to get where you wanted, but glad I was able to help!

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

    your very funny, I like your content

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

    I didn't find any TH-cam video for my issue. if you understand my issue please make an video...I have a dynamic website and My domain DNS set to Cloudflare and I hosted my site using a cyber panel webserver. my VPS IP is set to Cloudflare for the domain.. also I have set an AWS S3 bucket for WordPress media upload but the photo URL comes with the AWS bucket default URL.. how can I change the URL to my domain without the AWS bucket default URL?"

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

    Mannnn,I found this like a year later after I figured this all out myself from a ton of stack overflow & stuff 🤣, great video tho

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

      At least you got it! And the satisfaction of accomplishing it yourself is even better

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

    Stuck on (4) Creating your Amazon Cloudfront distrubution which includes a crucial piece of information that many guides neglect to mention. Each time I paste in the path I get this message in the "Name" panel. "Name is in use. Name must be unique" Not sure what happening or why it's not allowing me to create the origin

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

      The error message is providing the answer. Whatever your pasting in is already in use. I suspect there's some very minor detail in the tutorial you're potentially missing. Unfortunately I don't have any direct answers. Maybe try restarting the tutorial and taking it slow to make sure every step is followed?

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

      @@ChristopherPhillipsDev Thanks... Video is super clear and a time saver. Much appreciated. 😊 I will retrace my steps from the beginning. AWS did update their menu, some of the selections in your video has slightly change but not by much. They is no OAI option any longer. Your right, I definitely missed a minor step somewhere.

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

      I found the OAI option. It was located in the legacy radio button. This was the part I missed

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

    how to redirect the website to route to www even if you typed the naked domain?

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

      It's been awhile since I've watched the video but I believe there was something there detailing how to redirect. It has to do with setting up 2 buckets.

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

    this was a good video. But WHY is it, that with every AWS tutorial that I follow something is off. Why do I have two different CNAMES instead of you who has two identical names. And at the end stuff is not working for me. No website is showing. Anyway. I still gave the thumb up cause its clearly good stuff.

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

    thanks alot
    But it seems namecheap no longer allows nameservers when premiun DNS is active
    What can I do?

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

      I'm sorry, I don't know

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

      Hi! I added an update to the description text on how to solve this if you're still interested in using this for yourself.

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

    Followed exact same steps BUT when i hit the URL from cloudfront distribution > getting this error [solved]
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    InvalidToken
    The provided token is malformed or otherwise invalid.

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

      Unless they changed something, I think you're missing something. Others haven't had an issue.
      I'm not sure what token the error message is referring to. In my experience, the token is login related. I'm sorry I'm unable to provide more feedback

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

      @@ChristopherPhillipsDev Oh fine, They have added things like modifying bucket policy manually, apart from that i dont see much changes and thanks for the quick response!!!
      [EDIT]: Also, I have my buckets in different region, does that matter???

  • @agustinariel8942
    @agustinariel8942 17 วันที่ผ่านมา

    👏👏👏👏

  • @DevDev-lo1sb
    @DevDev-lo1sb 2 หลายเดือนก่อน

    For replacing files just can we change the files in s3

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

      Yep, just make sure you’re not deleting a dependency. Meaning if one file requires another, that it’s in the bucket

    • @DevDev-lo1sb
      @DevDev-lo1sb 2 หลายเดือนก่อน

      How can I contact you?

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

      @@DevDev-lo1sb there’s an email in the about section of my channel

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

    Will this be the same for ec2? I'm so stuck with it.

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

      I'm sorry, I don't know 😔

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

      @@ChristopherPhillipsDev It's okay, I'm so frustrated and just switched to s3. I think s3 is good enough for my portfolio requirements. Thanks!

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

    I deleted the contents of the bucket but the website still displays the contents. How do I fix this?

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

      I waited until responding. How does it look now? If changes haven't been updated by now, could be something else wrong that I don't know of. But propagation should've happened by now

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

      @@ChristopherPhillipsDev Yes. After almost 24 hours, the old files in the bucket are still the ones showing although I have already deleted them. I tried to disable the deployment in cloudfront to see if I can restore the page. After seeing the error page and then after enabling deployment, the old deleted website files in S3 bucket are still the ones showing. Does cloudfront or Route 53 cache these files somewhere else and cloudfront is deploying it from those cache and not directly fetching from S3 bucket? I really hope you could investigate as I can't access Amazon helpdesk due to lower tier subscription.
      Also, I tinkered with staging and now it is messed up and I can't delete the staging distribution. What should I do?

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

      @@Layput I'm sorry but I can't investigate since it's not my account/issue. I've used chatGPT to investigate issues outside of Amazon and it's quite a good tool for helping at least point me in the right direction. Maybe give that a shot?

  • @rakeshchauhan-op8qw
    @rakeshchauhan-op8qw ปีที่แล้ว

    Know how to redirect non-www to www using this?

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

      I'm sorry. It's been awhile since I've played around with this. Maybe someone else can assist?

    • @rakeshchauhan-op8qw
      @rakeshchauhan-op8qw ปีที่แล้ว

      @@ChristopherPhillipsDev no worries. Thanks for the reply though

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

    Wow. Great tutorial! You’re close to 1000 subs! Congrats! I’ll sub too and follow your content. Good luck and thank you so much!