{"id":13510233,"url":"https://github.com/cloudkj/scar","last_synced_at":"2025-10-17T19:00:02.147Z","repository":{"id":36018590,"uuid":"179739641","full_name":"cloudkj/scar","owner":"cloudkj","description":"Deploy static websites in seconds - with HTTPS, a global CDN, and custom domains.","archived":false,"fork":false,"pushed_at":"2025-05-17T02:09:32.000Z","size":1198,"stargazers_count":1740,"open_issues_count":6,"forks_count":61,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-23T08:09:53.149Z","etag":null,"topics":["aws","cloudformation","cloudfront","route53","s3","serverless","static-site"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudkj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-05T19:04:49.000Z","updated_at":"2025-05-17T02:09:36.000Z","dependencies_parsed_at":"2022-08-08T22:00:38.113Z","dependency_job_id":null,"html_url":"https://github.com/cloudkj/scar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudkj/scar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkj%2Fscar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkj%2Fscar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkj%2Fscar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkj%2Fscar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudkj","download_url":"https://codeload.github.com/cloudkj/scar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkj%2Fscar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279401614,"owners_count":26163291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cloudformation","cloudfront","route53","s3","serverless","static-site"],"created_at":"2024-08-01T02:01:30.019Z","updated_at":"2025-10-17T19:00:02.142Z","avatar_url":"https://github.com/cloudkj.png","language":"JavaScript","readme":"SCAR: 1-click static website deployment on AWS\n==============================================\n\nTired of reading outdated blog posts or combing through verbose AWS\ndocumentation just to figure out how to deploy your blog? Deploying static\nwebsites on AWS shouldn't be so *scar*y.\n\n**SCAR** is a deployment stack that make it easy for you to deploy a\nstatic website with a custom domain, SSL, and a CDN. All you need is an AWS\naccount to get started in three simple steps:\n\nQuick Start\n-----------\n\n#### 1. Launch a new stack using the AWS console to create all the required resources\n\n[![Launch stack](https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=SCAR\u0026templateURL=https://s3.amazonaws.com/cloudkj/scar_base_template.json)\n\n#### 2. Update the settings at your domain registrar to use the Route 53 name servers\n\nFind the name servers from your newly created [Route 53 hosted zone](https://console.aws.amazon.com/route53/home?#hosted-zones:),\nthen update the [name server settings at your registrar](#name-server-settings).\n\n#### 3. Validate the domain for your new [ACM certificate](https://console.aws.amazon.com/acm/home)\n\nFind and expand the details of the certificate for your domain in the AWS console, then click the\n*\"Create record in Route 53\"* buttons in the two prompts for validation.\n\n**_That's all, folks!_**\n\nUse the [CloudFormation](https://console.aws.amazon.com/cloudformation/home)\nconsole to check the status of the stack. If everything went smoothly, the\nstack deployment event timeline should look something like this:\n\n![SCAR deployment timeline](src/cloudformation/scar_base_template_stack_deployment_event_timeline.png)\n\nAfter the stack has been created and deployed, you can upload the contents of\nyour website directly with the [S3 console](https://s3.console.aws.amazon.com/s3/home),\nor use the [AWS CLI](https://aws.amazon.com/cli/) for programmatic control.\n\nStack Technical Details\n-----------------------\n\n![SCAR stack](src/cloudformation/scar_base_template.png)[]()\n\n**SCAR** is a deployment stack for static websites running entirely on AWS, using **S**3,\n**C**loudFront, **A**mazon Certificate Manager, and **R**oute 53. For a given\ndomain such as `example.com`, the default SCAR stack will create the following:\n\n* Two S3 buckets, one for storing the contents of your static website\n  (`www.example.com`) and another for redirecting requests for the apex domain\n  (`example.com`) to the `www` subdomain.\n* Two CloudFront distributions, one for each S3 bucket.\n* One ACM public SSL/TLS certificate for both `example.com` and `*.example.com`\n* One Route 53 hosted zone, with an `A` record for each CloudFront distribution.\n\nThe behavior for the default SCAR stack is to redirect all requests for the apex\ndomain to the `www` subdomain, and to redirect all `http` requests to `https`.\nAll content will be stored in and served out of the `www` S3 bucket.\n\nAdditional stacks with slight variations from the default stack are also\navailable:\n\n| Behavior | Default | WWW-\u003eApex | Apex only |\n|----------|---------|-----------|-----------|\n| Apex domain requests | Redirect to `www` | | |\n| `www` subdomain requests | | Redirect to apex domain | N/A |\n| `http` requests | Redirect to `https` | Redirect to `https` | Redirect to `https` |\n| | [![Launch stack](https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=SCAR\u0026templateURL=https://s3.amazonaws.com/cloudkj/scar_base_template.json) | (Coming Soon) | (Coming Soon) |\n\nName Server Settings\n--------------------\n\n* [GoDaddy](https://www.godaddy.com/help/change-nameservers-for-my-domains-664)\n* ~[Google Domains](https://support.google.com/domains/answer/3290309?hl=en)~\n* [Squarespace](https://support.squarespace.com/hc/en-us/articles/4404183898125-Making-changes-to-nameservers)\n\nFAQ\n---\n\n### How much will this cost?\n\nFor 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.\n\n### What tool did you use to draw the diagram above?\n\nThe [AWS CloudFormation Designer tool](https://console.aws.amazon.com/cloudformation/designer/home) allows drag-and-drop creation of templates, and also creates diagrams from existing JSON or YAML template files.\n\nLicense\n-------\n\nCopyright © 2019-2022\n","funding_links":[],"categories":["JavaScript","HarmonyOS","aws"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudkj%2Fscar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudkj%2Fscar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudkj%2Fscar/lists"}