Voltar ao ranking

cloudkj/scar

JavaScript

Deploy static websites in seconds - with HTTPS, a global CDN, and custom domains.

static-siteserverlessawss3cloudfrontroute53cloudformation
Crescimento de estrelas
Estrelas
1.7k
Forks
60
Crescimento semanal
Issues
6
1.5k1.6k1.7k
mai. de 2019set. de 2021fev. de 2024jul. de 2026
Artefatosnpmnpm install scar
README

SCAR: 1-click static website deployment on AWS

Tired of reading outdated blog posts or combing through verbose AWS documentation just to figure out how to deploy your blog? Deploying static websites on AWS shouldn't be so scary.

SCAR is a deployment stack that make it easy for you to deploy a static website with a custom domain, SSL, and a CDN. All you need is an AWS account to get started in three simple steps:

Quick Start

1. Launch a new stack using the AWS console to create all the required resources

Launch stack

2. Update the settings at your domain registrar to use the Route 53 name servers

Find the name servers from your newly created Route 53 hosted zone, then update the name server settings at your registrar.

3. Validate the domain for your new ACM certificate

Find and expand the details of the certificate for your domain in the AWS console, then click the "Create record in Route 53" buttons in the two prompts for validation.

That's all, folks!

Use the CloudFormation console to check the status of the stack. If everything went smoothly, the stack deployment event timeline should look something like this:

SCAR deployment timeline

After the stack has been created and deployed, you can upload the contents of your website directly with the S3 console, or use the AWS CLI for programmatic control.

Stack Technical Details

SCAR stack

SCAR is a deployment stack for static websites running entirely on AWS, using S3, CloudFront, Amazon Certificate Manager, and Route 53. For a given domain such as example.com, the default SCAR stack will create the following:

  • Two S3 buckets, one for storing the contents of your static website (www.example.com) and another for redirecting requests for the apex domain (example.com) to the www subdomain.
  • Two CloudFront distributions, one for each S3 bucket.
  • One ACM public SSL/TLS certificate for both example.com and *.example.com
  • One Route 53 hosted zone, with an A record for each CloudFront distribution.

The behavior for the default SCAR stack is to redirect all requests for the apex domain to the www subdomain, and to redirect all http requests to https. All content will be stored in and served out of the www S3 bucket.

Additional stacks with slight variations from the default stack are also available:

Behavior Default WWW->Apex Apex only
Apex domain requests Redirect to www
www subdomain requests Redirect to apex domain N/A
http requests Redirect to https Redirect to https Redirect to https
Launch stack (Coming Soon) (Coming Soon)

Name Server Settings

FAQ

How much will this cost?

For most sites, it will likely cost less than $1 per month. The cost for a Route 53 hosted zone is fixed at $0.50/month; the remaining CloudFront and S3 costs depend on the levels of traffic, but typically amount to a few cents for small levels of traffic.

What tool did you use to draw the diagram above?

The AWS CloudFormation Designer tool allows drag-and-drop creation of templates, and also creates diagrams from existing JSON or YAML template files.

License

Copyright © 2019-2022

Repositórios relacionados
coollabsio/coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 280+ one-click services on your own servers.

PHPPackagistApache License 2.0nodejsmysql
coolify.io
59.2k5.1k
decaporg/decap-cms

A Git-based CMS for Static Site Generators

JavaScriptnpmMIT Licensecmsjamstack
decapcms.org
19.3k3.1k
react-static/react-static

⚛️ 🚀 A progressive static site generator for React.

JavaScriptnpmMIT Licensereactreact-static
github.com/react-static/react-static/discussions
10.3k742
getgridea/gridea

✍️ A static blog writing client (一个静态博客写作客户端)

TypeScriptnpmMIT Licenseelectronvue
open.gridea.dev
10.3k835
fluid-dev/hexo-theme-fluid

:ocean: 一款 Material Design 风格的 Hexo 主题 / An elegant Material-Design theme for Hexo

JavaScriptnpmGNU General Public License v3.0hexo-themematerial-design
hexo.fluid-dev.com
8.2k1.1k
GetPublii/Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.

HTMLGNU General Public License v3.0electronstatic-site-generator
getpublii.com
7.3k465
ppoffice/hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.

JavaScriptnpmMIT Licensehexohexo-theme
ppoffice.github.io/hexo-theme-icarus/
6.7k1.5k
arthelokyo/astrowind

⭕️ AstroWind: A free template using Astro v6 and Tailwind CSS v4. Astro starter theme.

AstroMIT Licenseastrojavascript
astrowind.vercel.app
5.8k1.6k
satnaing/astro-paper

A minimal, accessible and SEO-friendly Astro blog theme.

AstroMIT Licenseastroblog
astro-paper.pages.dev
4.9k1k
saicaca/fuwari

✨A static blog template built with Astro.

AstroMIT Licenseastroblog
fuwari.vercel.app
4.8k1.2k
assemble/assemble

Get the rocks out of your socks! Assemble makes you fast at web development! Used by thousands of projects for rapid prototyping, themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websites/static site generator, an alternative to Jekyll for gh-pages and more! Gulp- and grunt-friendly.

CSSnpmMIT Licensebuildstatic-site
assemble.io
4.3k273
onwidget/astrowind

⭕️ AstroWind: A free template using Astro 5 and Tailwind CSS. Astro starter theme.

AstroMIT Licenseastrojavascript
astrowind.vercel.app
4k1.2k