- Notifications
You must be signed in to change notification settings - Fork61
Deploy static websites in seconds - with HTTPS, a global CDN, and custom domains.
License
cloudkj/scar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tired of reading outdated blog posts or combing through verbose AWSdocumentation just to figure out how to deploy your blog? Deploying staticwebsites on AWS shouldn't be soscary.
SCAR is a deployment stack that make it easy for you to deploy astatic website with a custom domain, SSL, and a CDN. All you need is an AWSaccount to get started in three simple steps:
Find the name servers from your newly createdRoute 53 hosted zone,then update thename server settings at your registrar.
3. Validate the domain for your newACM 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 theCloudFormationconsole to check the status of the stack. If everything went smoothly, thestack deployment event timeline should look something like this:
After the stack has been created and deployed, you can upload the contents ofyour website directly with theS3 console,or use theAWS CLI for programmatic control.
SCAR is a deployment stack for static websites running entirely on AWS, usingS3,CloudFront,Amazon Certificate Manager, andRoute 53. For a givendomain such asexample.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 thewww
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 apexdomain to thewww
subdomain, and to redirect allhttp
requests tohttps
.All content will be stored in and served out of thewww
S3 bucket.
Additional stacks with slight variations from the default stack are alsoavailable:
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.
TheAWS CloudFormation Designer tool allows drag-and-drop creation of templates, and also creates diagrams from existing JSON or YAML template files.
Copyright © 2019-2022
About
Deploy static websites in seconds - with HTTPS, a global CDN, and custom domains.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.