{"id":18696272,"url":"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3","last_synced_at":"2026-03-19T05:56:24.906Z","repository":{"id":213993314,"uuid":"735435483","full_name":"nulllogic/terraform-aws-website-static-cloudfront-s3","owner":"nulllogic","description":"🚀 By using this Terraform module, you can save time and effort in setting up your AWS static website. Its comprehensive Terraform code and thoughtful configuration options allow you to create a reliable, scalable, and performant static website on AWS without any problems.","archived":false,"fork":false,"pushed_at":"2025-08-04T11:40:48.000Z","size":8828,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T15:39:10.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/nulllogic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2023-12-24T23:27:47.000Z","updated_at":"2025-08-04T11:28:30.000Z","dependencies_parsed_at":"2024-02-01T22:06:52.675Z","dependency_job_id":"3f190060-cdc2-437c-983b-7d1b5aa4e915","html_url":"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3","commit_stats":null,"previous_names":["nulllogic/terraform-static-website-aws"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/nulllogic/terraform-aws-website-static-cloudfront-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulllogic%2Fterraform-aws-website-static-cloudfront-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulllogic%2Fterraform-aws-website-static-cloudfront-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulllogic%2Fterraform-aws-website-static-cloudfront-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulllogic%2Fterraform-aws-website-static-cloudfront-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nulllogic","download_url":"https://codeload.github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulllogic%2Fterraform-aws-website-static-cloudfront-s3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28761904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T23:06:19.311Z","status":"ssl_error","status_checked_at":"2026-01-25T23:03:50.555Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-11-07T11:17:53.568Z","updated_at":"2026-01-26T00:06:52.904Z","avatar_url":"https://github.com/nulllogic.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS static website module\n\n\u003cp\u003e\n   \u003ca href=\"#\"\u003e\n       \u003cimg alt=\"Logo\" src=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/raw/master/.imgs/header.png\" /\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- Badges --\u003e\n\u003cp\u003e\n  \u003ca href=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/graphs/contributors\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/contributors/nulllogic/terraform-aws-website-static-cloudfront-s3\" alt=\"contributors\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/nulllogic/terraform-aws-website-static-cloudfront-s3\" alt=\"last update\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/network/members\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/forks/nulllogic/terraform-aws-website-static-cloudfront-s3\" alt=\"forks\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/nulllogic/terraform-aws-website-static-cloudfront-s3\" alt=\"stars\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/issues/\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/nulllogic/terraform-aws-website-static-cloudfront-s3\" alt=\"open issues\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/nulllogic/terraform-aws-website-static-cloudfront-s3\" alt=\"license\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"left\"\u003eThe main objective of this module is to leverage the power of AWS services, specifically CloudFront and S3, to host and deliver your static website efficiently and securely. By utilizing Terraform's infrastructure as code capabilities, this project streamlines the deployment process, making it easy for you to set up and manage your AWS static website.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nulllogic.net/\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/raw/master/.imgs/logo.png\"\u003e\n      \u003cimg alt=\"NullLogic\" src=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/raw/master/.imgs/logo.png\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## ┌ Table of Contents ┐\n\n- [Requirements](#-requirements-)\n- [Key Features](#-key-features-)\n- [Quick Start](#-quick-start-)\n- [Module Examples](#-module-examples-)\n\n\u003c!-- Requirements --\u003e\n\u003ca name=\"-requirements-\" /\u003e\n\n## ┌ Requirements ┐\n\n\u003cp\u003e🗯️ \u003cstrong\u003eMandatory\u003c/strong\u003e\u003c/p\u003e\n\n1. 🐳 Docker ( [download](https://docs.docker.com/get-docker/) )\n2. 🤖 AWS account + security keys ( [instruction](https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/) )\n   1. `aws_access_key_id`\n   2. `aws_secret_access_key`\n\n\u003cp\u003e💭️ \u003cstrong\u003eOptional\u003c/strong\u003e\u003c/p\u003e\n\n1. Domain, located in [Amazon AWS Route53](https://aws.amazon.com/route53/)\n\n\u003c!-- Key Features --\u003e\n\u003ca name=\"-key-features-\" /\u003e\n\n## ┌ Key Features ┐\n\n⚙️ Zero-config, **one-minute setup** with a **single CLI command**\n\n🔐 AWS providers for smooth **deployment** and **certificate** generation\n\n⚡ Out-of-the-box support for **static website**\n\n💪 Future-proof, **robust architecture**\n\n🐳 Docker commands under the hood \n\n✅ Full **test coverage**\n\n🔒 Additional **security** headers\n\n\u003c!-- Quick Start --\u003e\n\u003ca name=\"-quick-start-\" /\u003e\n\n\n## ┌ Quick Start ┐\n\nBy using this project, you can save time and effort in setting up your AWS static website. Its comprehensive Terraform code and thoughtful configuration options allow you to create a reliable, scalable, and performant static website on AWS without any problems.\n\nFeel free to explore the project on [GitHub](https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3). Happy coding!\n\n\u003cstrong\u003e1st step\u003c/strong\u003e:\n\nDownload two files `main.tf` and `provider.tf` from one of examples directories.\n\n\u003cstrong\u003e2nd step\u003c/strong\u003e:\n\nRun one of the following commands inside directory with those two files. \u003cbr /\u003e\n( it will use docker image with HashiCorp with TerraForm application inside)\n\nIf you have used AWS CLI already, you can attach keys by running this command:\n\n```\ndocker container run -it --rm -v ${PWD}:/tf -v ~/.aws:/root/.aws --workdir /tf hashicorp/terraform:latest init\n```\n\nIf you haven't used AWS CLI, you can pass those keys directly, by running this command:\n( don't forget to replace XXXX with your AWS keys )\n```\ndocker container run -it --rm -e TF_VAR_aws_access_key_id=XXXXXXXX -e TF_VAR_aws_secret_access_key=XXXXXXX -v {PWD}:/tf --workdir /tf hashicorp/terraform:latest init\n```\n\n\u003cstrong\u003e3rd step\u003c/strong\u003e:\n\nRun the command, that you used previously, but instead of `init` at the end of the command, write `apply`\n\nIt should look like this :\n```\ndocker container run -it --rm -v {PWD}:/tf -v ~/.aws:/root/.aws --workdir /tf hashicorp/terraform:latest apply\n```\n\n\u003cstrong\u003e4th step\u003c/strong\u003e:\n\nRun the command, that you used previously, but instead of `apply` at the end of the command, write `deploy`\n\nIt should look like this :\n```\ndocker container run -it --rm -v {PWD}:/tf -v ~/.aws:/root/.aws --workdir /tf hashicorp/terraform:latest deploy\n```\n\n\u003cstrong\u003e5th step\u003c/strong\u003e:\n\nProfit ! 💪\n\n\u003cbr/\u003e\n\n\u003c!-- Module Examples --\u003e\n\u003ca name=\"-module-examples-\" /\u003e\n\n## ┌ Module Examples ┐\n\n\u003cdetails\u003e\n  \u003csummary\u003eExample 1 -\u003e CloudFront + S3\u003c/summary\u003e\n    \u003cp\u003e\n\n   ```hcl\n  module \"website-static-cloudfront-s3\" {\n    source  = \"nulllogic/website-static-cloudfront-s3/aws\"\n\n    tags = {\n       Environment = \"dev\"\n       Terraform   = \"true\"\n    }\n  } \n   ```\n   \u003c/p\u003e\n  \u003cbr /\u003e\n  \u003cimg alt=\"Example 1\" src=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/raw/master/.imgs/example1.png\" /\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e \n\u003csummary\u003eExample 2 -\u003e CloudFront + S3 + Domain\u003c/summary\u003e\n  \u003cp\u003e\n\n  ```hcl\n  module \"website-static-cloudfront-s3\" {\n    source  = \"nulllogic/website-static-cloudfront-s3/aws\"\n\n    route53 = {\n      domain = \"example.com\"\n    }\n\n    tags = {\n       Environment = \"dev\"\n       Terraform   = \"true\"\n    }\n  } \n   ```\n  \u003c/p\u003e\n  \u003cbr /\u003e\n  \u003cimg alt=\"Example 2\" src=\"https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/raw/master/.imgs/example2.png\" /\u003e\n\u003c/details\u003e\n\n\n## ┌ Contributing ┐\n\nSee [Contributing](https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/tree/master/CONTRIBUTING.md)\n\n## ┌ Changelog ┐\n\nSee [Changelog](https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/tree/master/CHANGELOG.md)\n\n## ┌ License ┐\n\nLicensed under the MIT [License](https://github.com/nulllogic/terraform-aws-website-static-cloudfront-s3/tree/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulllogic%2Fterraform-aws-website-static-cloudfront-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnulllogic%2Fterraform-aws-website-static-cloudfront-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulllogic%2Fterraform-aws-website-static-cloudfront-s3/lists"}