Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

GitHub action to deploy repo to S3 and clear cloudfront cache

Notifications You must be signed in to change notification settings

rootbeerdan/StaticS3CloudFrontDeployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

⚠️ There are better ways to do this ⚠️

It's much better to use a purpose made tool for this. Below is a (non-exhaustive) list of tools you could use instead (I use Cloudflare Pages):

  • Cloudflare Pages
  • GitHub Pages
  • AWS Amplify
  • Azure Static Web Apps

I am keeping this archived repository around for posterity as it was made during a time when there was not many good options for static webpages.

StaticS3CloudFrontDeployment

GitHub action to deploy repo to S3 and clear cloudfront cache

Use

You'll need to do a few things beforehand, this can be automated in CloudFormation or not depending on your skill level.

Create S3 Bucket

Pretty straightforward, name it something useful, keep it private

Create CloudFront distibution

Configure it the way you want. If you want to save money, remove every region except US/Canada, assuming you live in North America.

Create IAM role

This is important that you don't just use your regular access keys, to keep up security. Limit it's access to just write access to buckets, and invalidation of CloudFront cache.

Help

Feel free to submit an issue if you need help.

About

GitHub action to deploy repo to S3 and clear cloudfront cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published