{"id":18090794,"url":"https://github.com/cob16/aws_static_website","last_synced_at":"2026-03-19T03:13:08.357Z","repository":{"id":56078888,"uuid":"264491981","full_name":"cob16/aws_static_website","owner":"cob16","description":"A cloudfront hosted website that uses a private s3 backend","archived":false,"fork":false,"pushed_at":"2026-02-12T20:57:39.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-13T04:19:40.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/cob16.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-16T17:40:35.000Z","updated_at":"2026-02-12T20:57:47.000Z","dependencies_parsed_at":"2025-02-12T08:39:00.904Z","dependency_job_id":"e3d43e8b-5adb-485e-9d9e-eddc2db8c5d2","html_url":"https://github.com/cob16/aws_static_website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cob16/aws_static_website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cob16%2Faws_static_website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cob16%2Faws_static_website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cob16%2Faws_static_website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cob16%2Faws_static_website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cob16","download_url":"https://codeload.github.com/cob16/aws_static_website/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cob16%2Faws_static_website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29580808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-31T18:07:27.727Z","updated_at":"2026-03-19T03:13:08.352Z","avatar_url":"https://github.com/cob16.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A static website\nOn a AWS free account this will cost around $0.60 per month (not including domain registration)\n\nA cloudfront hosted website that uses a private s3 backend\n```\n                    +------+       +--------------+      +------+\n                    |      |       |              |      |      |\n                    | DNS  | +---\u003e |  CloudFront  | +--\u003e |  S3  |\n                    |      |       |              |      |      |\n                    +------+       +--------------+      +------+\n```\n\n## And some monitoring \nCloudwatch billing and usage alerts to pager duty based of customisable thresholds\n```\n                    +------------+       +-------+      +-------------+\n                    |            |       |       |      |             |\n                    | Cloudwatch | +---\u003e |  SNS  | +--\u003e |  Pagerduty  |\n                    |            |       |       |      |             |\n                    +------------+       +-------+      +-------------+\n```\n## And finally some overbilling protections \nIf actual or forecasted budget is exceeded an email is sent and the static website shutdown automatically  \n```\n            +------------+       +-------+      +-------------+      +-------------+\n            |            |       |       |      |             |      |             |\n            |  Budgets   | +---\u003e |  SNS  | +--\u003e |   Lambda    | +--\u003e |  CloudFront |\n            |            |       |       |      |             |      |             |\n            +------------+       +-------+      +-------------+      +-------------+\n```\n\n# Prerequisites\n- Terraform (+v0.13)\n- An AWS account (free tier)\n- Pagerduty account (free tier)\n\n# Setup\n- Remove line 8 in `main.tf` `backend.s3` \n- copy the example tfvars file and edit\n```bash\ncp example.tfvars terraform.tfvars\n```\n- edit `terraform.tfvars` to fit your needs \n\nNote: The descriptions of`variables.tf` can give you hints\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcob16%2Faws_static_website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcob16%2Faws_static_website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcob16%2Faws_static_website/lists"}