{"id":23498017,"url":"https://github.com/freedomben/s3-static-site","last_synced_at":"2026-01-29T03:42:12.795Z","repository":{"id":69605404,"uuid":"190771656","full_name":"FreedomBen/s3-static-site","owner":"FreedomBen","description":"Handy scripts to make static site deployment easy to s3","archived":false,"fork":false,"pushed_at":"2020-02-17T22:45:11.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T14:59:13.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/FreedomBen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-07T15:56:40.000Z","updated_at":"2020-02-17T22:45:13.000Z","dependencies_parsed_at":"2023-05-31T12:48:03.681Z","dependency_job_id":null,"html_url":"https://github.com/FreedomBen/s3-static-site","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/FreedomBen%2Fs3-static-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fs3-static-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fs3-static-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fs3-static-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreedomBen","download_url":"https://codeload.github.com/FreedomBen/s3-static-site/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250307817,"owners_count":21409150,"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":[],"created_at":"2024-12-25T05:17:54.967Z","updated_at":"2026-01-29T03:42:12.740Z","avatar_url":"https://github.com/FreedomBen.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# s3-static-site\n\nHandy scripts to make static site deployment easy to S3\n\nTo use, edit the values in `generate.sh` to match your use case, then run the script.  It will generate terraform files which you can then use to provision your S3 buckets and cloudfront distributions!\n\n## Steps to use\n\n_Note: You should only need to modify generate.sh with domain values and\nvariable tweaks.  If you find yourself modifying either the\ngenerated terraform or the terraform erb file, it's considered a bug.\nPlease open an issue or send a PR!_\n\n### Make sure erb is installed\n\n1.  Install ruby (varies by platform.  Plenty of other sources to help)\n1.  ERB usually comes with Ruby, but you might need to `gem install erb`\n\n### Customize generate.sh\n\nOpen `generate.sh` and update the `DOMAIN` and `TLD` variables at the\ntop to fit your site.  You might also need to either add more calls to\n`erb` if you want more environments than just staging and production.\nIf you want different settings per environment, you may need to change\nthe variables being passed in.  The comment at the top should be helpful\nat knowing which variables to use.\n\n#### Example:\n\nChange `DOMAIN` to `DOMAIN=busyuntilbedtime` and `TLD` to `TLD=com`\n\n### Run the generation script\n\nRun the `generate.sh` script to render the template into usable terraform files:\n\n```bash\n./generate.sh\n```\n\nOne file per environment will emerge.  Copy to wherever you keep your source code.\n\n### Initialize terraform if necessary\n\nFrom the directory with your terraform file, initialize terraform:\n\n```bash\nterraform init\n```\n\nNow run a plan and make sure you are happy with the results:\n\n```bash\nterraform plan\n```\n\nIf you are, go ahead and apply:\n\n```bash\nterraform apply\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedomben%2Fs3-static-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreedomben%2Fs3-static-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedomben%2Fs3-static-site/lists"}