{"id":15874184,"url":"https://github.com/milldr/serverless-site-basics","last_synced_at":"2026-05-03T04:31:18.157Z","repository":{"id":79867122,"uuid":"255475139","full_name":"milldr/serverless-site-basics","owner":"milldr","description":"all you need to get a static website hosted on S3","archived":false,"fork":false,"pushed_at":"2020-06-15T21:33:09.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T09:09:10.129Z","etag":null,"topics":["aws","cloudfront","hugo","route53","s3","serverless"],"latest_commit_sha":null,"homepage":null,"language":null,"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/milldr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-14T00:52:07.000Z","updated_at":"2020-06-15T21:33:11.000Z","dependencies_parsed_at":"2023-07-11T05:15:32.622Z","dependency_job_id":null,"html_url":"https://github.com/milldr/serverless-site-basics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milldr%2Fserverless-site-basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milldr%2Fserverless-site-basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milldr%2Fserverless-site-basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milldr%2Fserverless-site-basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milldr","download_url":"https://codeload.github.com/milldr/serverless-site-basics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724800,"owners_count":20823543,"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","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","cloudfront","hugo","route53","s3","serverless"],"created_at":"2024-10-06T01:21:14.734Z","updated_at":"2026-05-03T04:31:18.103Z","avatar_url":"https://github.com/milldr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static Site Quickstart\nAll you need to get started with a static website. Search and replace `mystaticsite.com` to whatever `site.com` you want throughout. It should be replaced in the Cloudformation template, the github action to deploy the stack, and in the config.toml example.\n\n## AWS Generated Resources\n### Manual Steps BEFORE Running:\n- Register your Domain in Route53. AWS will generate a Route53 Hosted Zone after registration.\n\n### Running Cloudformation\nCloudformation template will generate all necessary resources to host a static website on S3 linked to a Cloudfront Distribution. All resources are listed under youre newly created stack, including:\n- S3 Bucket to host the static content\n- S3 Bucket Policy for public access THROUGH Cloudfront\n- CloudFront Origin Access Identity to limit access to the Bucket content\n- CloudFront Distribution to provide to access the Bucket content and to link up the Domain name.\n- ACM Certificate with AWS Certificate Manager, using DNS validation. \n\n*NOTE* For the first deployment, AWS requires that you manually add the CNAME for the new ACM Cert to your domain. From AWS Docs: \"When you use the AWS::CertificateManager::Certificate resource in an AWS CloudFormation stack, the stack will remain in the CREATE_IN_PROGRESS state. Further stack operations will be delayed until you validate the certificate request, either by acting upon the instructions in the validation email, or by adding a CNAME record to your DNS configuration.\"\n\n## Content Generation\nI like to generate static code [Hugo](https://gohugo.io/), but that isnt actually included in this repo itself. Hugo will generate everything you need; all you need to do to get started is to follow their [quickstart](https://gohugo.io/getting-started/quick-start/). Other useful commands:\n- Run locally with `hugo server -D`\n- Build for s3 with `hugo -D`\n- Deploy build to s3 with `hugo -v deploy`\n\n## Pipeline Automation: GitHub Action\n- Validate Cloudformation with [cfn_nag](https://github.com/stelligent/cfn_nag)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilldr%2Fserverless-site-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilldr%2Fserverless-site-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilldr%2Fserverless-site-basics/lists"}