Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

cloudkj/scar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

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:

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 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:

SCAR deployment timeline

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.

Stack Technical Details

SCAR stack

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 bothexample.com and*.example.com
  • One Route 53 hosted zone, with anA 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:

BehaviorDefaultWWW->ApexApex only
Apex domain requestsRedirect towww
www subdomain requestsRedirect to apex domainN/A
http requestsRedirect tohttpsRedirect tohttpsRedirect tohttps
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?

TheAWS 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp