• Skip to primary navigation
  • Skip to main content
  • Skip to footer

lawsie

The long-term storage silo of a human mind

  • Andrew Culture
  • Beat Motel Podcast
  • Observations
  • Consumer Info
  • Tech
  • Music Consumption
  • Musician Stuff
  • Graveyard
  • Buy me a pint
Home » blog » Using CloudFront to set Amazon S3 permissions policy

Using CloudFront to set Amazon S3 permissions policy

Published January 3, 2018 by lawsie Leave a Comment

Cloudfront can set the correct Amazon S3 bucket policy for Jekyll hosting

Knowing that CloudFront can be used to set the permissions for the S3 bucket that hosts your Jekyll site would have saved me a lot of time.

I spent a lot of time trying different variations of S3 bucket policies and was struggling to find any conclusive advice. Then I found that there’s a tickbox in CloudFront that sets the S3 bucket permissions automatically. Sheesh!

How to use CloudFront to set your S3 bucket permissions

While being led through your CloudFront distribution you will be asked if you want to restrict bucket access. By default this is set to ‘no’. When you set this option to ‘yes’ a whole host of new options will appear. You should see an option for CloudFront to set the policy on your S3 bucket automatically.

Caveat

I don’t know for fact that this is true. But it certainly appears to be the case. When I allowed CloudFront to set the policy I went over to my S3 and checked the policy and it had certainly changed! If you know better then please get in touch and let me know!

Last Updated on February 23, 2023

Filed Under: jekyll Tagged With: Amazon Hosting Issues, jekyll

Have you found this content useful?

Buy me a pint

This website isn't packed with obnoxious advertising but it does cost money to keep alive. Every little donation is a big help!

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Footer

Copyright © 2023 · Site wholly owned by Andrew Laws Associates Ltd | SEO by Yeseo

  • Home
  • About me
  • Andrew Culture
  • Buy me a pint
  • Privacy Policy
  • Contact me