Static website hosting on Amazon S3 (with CloudFront) without enabling public access.

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • Learn how to host a static website on Amazon S3 without enabling public access to the S3 buckets.
    The services used to do this are Route 53, Certficate Manager, CloudFront, and S3.
    AWS documentation for Route 53: docs.aws.amazo...
    Watch the Spanish version of this video: • Alojar un sitio web en...
    Spanish Lessons: torogoz.academy/

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

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

    Helped me not only get my site online, but also keep it extra secure by restricting public access. You are the man my guy!

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

    Had used an S3 bucket with public access to host my static website, had to re-do the whole process following your video. You are a champion, thumps up to you.

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

    This video helps me a lot with my understanding on hosting website without public access. Thank you.

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

    Your content is rich and your teaching style is crystal clear. Please make a video on WAF

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

    That was an excellent tutorial, very clear and easy to follow, thank you!

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

    Huge thanks! I've been putting this off for a while. Now my company has a stable website hosting! Fast and easy.

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

    This is the most sensible tutorial. I was looking for something like this. Thanks a lot God Bless you Brother!!

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

    just found this, good content, odd there are so few subscribers, comments or views. better and more up to date content than many other videos.

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

      had a hiccup after completing the video, got no access error, a few minutes later this error went away. I didn't manually clear my cache. maybe slow propagation of cloudfront? either way, great tutorial. thanks!!

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

      Thanks. I'm glad you found it.

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

    Excellent video! Thank you!

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

    Great video. I just have few questions.
    1) what if my html file is in a sub directory of a bucket.
    2) what if i have muitlple html files linked with index.html file . All these recides in the same subdirectory in different folder hirerachy.
    3) what if i want to use my company dns resolution service instead of amazon route s3.
    Appreciate the video.

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

    very clear video and clear explanation :)

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

    Hi, Nice video. I have one doubt I'm not able to call the subdirectories it's showing access denied. Only for the root object(index.html) I can able to access it through the cloud front. Kindly help me with this.

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

    Great video. I did everything exactly as you have in the video but the CF distribution doesn't show up like it does for yours @13:06 . I wonder what I did wrong.

  • @janyumi1995
    @janyumi1995 10 วันที่ผ่านมา

    my domain was on cloudflare, is that okay to skip the domain/certificate part?
    after having the generated cloudfront url, can i just set it as value on my cname record on cloudflare

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

    Amazing. What if you want to update the index.html file in the S3 bucket? How do you go about this? I tried to invalidate the CloudFront Cache but now my site doesn’t work.

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

    Very nicely done

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

    thanks a lot, very clear !

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

    Hi James very nice tutorial,
    I got a problem I always got a 403 Access Denied, I create a new OAI in Cloudfront and try to access it with the cloudfront DNS. The s3 Bucket is not Public...

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

      Please add policy manually , take the policy from cloud front and add to s3 bucket. Because this video was created 1 yr back and now we need to add the policy manually

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

    Thanks for this video

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

    what about routing for static website? From my experience each route redirects to home page on page refresh

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

    freaking amazing. Thank you

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

    I have the website calling some apis to create user etc , but for some reason i can't access those. Does cloud front blocks them too? If so how do we enable it? The developer tool says "(blocked:mixed-content)". Any idea anyone, on how to enable?

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

    huge help, thanks

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

    Great tutorial! But, if inside de bucket I have more than one folder and each one with its .html each folder got a different link? I am hosting a virtual tour, and my website so I was wondering if I can have a lot of folders inside.

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

      Thanks!
      If you have more than one folder with .html files inside the folders, the links would change. For example, if your site is gilberto.com, with a folder in S3 called 'folder1' and a sub folder inside of 'folder1' called 'folder2', with a martini.html file inside 'folder2', the address would be gilberto.com/folder1/folder2/martini.html
      If you have a test.html file inside 'folder1', the address would be gilberto.com/folder1/test.html
      Am I understanding your question correctly?

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

      @@jamesschneider8677 that is perfect for what I need! thank for reply

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

      Hello James, let me ask you another thing. Do I have to add the dns from the route 53 on my domain provider? I bought mine on godaddy

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

      @@GilbertoDesign, I think I need some more information. If you want to use AWS, you can put your DNS entries for GoDaddy inside Route 53. Or you can transfer your domain to AWS as well. What you do will most likely depend on what you’re currently doing with your domain at GoDaddy.

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

    should the bucket name be same as domain as mentioned by you or it can be anything

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

      It doesn't have to be the same, but it helps to keep everything organized. It does need to be the same if you are using a bucket with Route 53 to redirect to another URL. For example, to redirect an apex domain to another domain using Amazon S3 and Amazon Route 53. aws.amazon.com/premiumsupport/knowledge-center/redirect-domain-route-53/

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

    why you didn't enable server side encryption SSE-S3 ?

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

      No reason. I normally enable it. Thanks for asking.

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

    Perfect! Thank you so much! I'm wondering if there's any way to remove that www from the url if anyone types it in? 🤔 That'd be awesome.

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

      @Bob Dempsey, you may create an A record in Route53 for your website URL (without www) and redirect the request to the other A record (with www).

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

      @@rvsing4638 cool! Will try and update!

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

      You're welcome! I'm glad you enjoyed the video.

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

      By the way, @Bob Dempsey, if what @Ravinder Sond mentioned doesn't accomplish what you are trying to do, then you have additional options as well. For example, S3 and CloudFront. Here is some AWS documentation that might help: aws.amazon.com/premiumsupport/knowledge-center/route-53-redirect-to-another-domain/

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

      @@rvsing4638 Hey that didn't work. It looks like most people are using 2 buckets. I'm surprised AWS recommends that. Thanks for the help though!

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

    I try and try but have nt succeeed yet.