{"id":23257198,"url":"https://github.com/iknowjavascript/terraform-static-server","last_synced_at":"2026-04-13T02:04:45.307Z","repository":{"id":238393285,"uuid":"796458646","full_name":"iKnowJavaScript/terraform-static-server","owner":"iKnowJavaScript","description":"This project provides a Terraform configuration for hosting a static website on AWS. It creates and configures the necessary AWS resources including S3, Route 53 (DNS), IAM, CloudFront, and WAF.","archived":false,"fork":false,"pushed_at":"2024-05-23T15:56:27.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T02:12:10.476Z","etag":null,"topics":["aws","cloudfront","deployment","dns","frontend","hcl2","open-source","s3","terraform","terraform-managed","waf"],"latest_commit_sha":null,"homepage":"https://dev.to/kingkonsole/building-high-performance-secure-static-websites-on-a-budget-with-aws-and-terraform-1eed","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/iKnowJavaScript.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":"2024-05-06T01:17:49.000Z","updated_at":"2024-05-23T15:56:31.000Z","dependencies_parsed_at":"2024-12-19T12:31:48.828Z","dependency_job_id":"357dd2b2-b9be-41d0-9c32-1f6f6a8f74d9","html_url":"https://github.com/iKnowJavaScript/terraform-static-server","commit_stats":null,"previous_names":["iknowjavascript/terraform-static-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fterraform-static-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fterraform-static-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fterraform-static-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iKnowJavaScript%2Fterraform-static-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iKnowJavaScript","download_url":"https://codeload.github.com/iKnowJavaScript/terraform-static-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436140,"owners_count":20938532,"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","deployment","dns","frontend","hcl2","open-source","s3","terraform","terraform-managed","waf"],"created_at":"2024-12-19T12:27:18.661Z","updated_at":"2026-04-13T02:04:45.262Z","avatar_url":"https://github.com/iKnowJavaScript.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Static Website Hosting Project\n\nThis project provides a Terraform configuration for hosting a static website on AWS. It creates and configures the necessary AWS resources including S3, Route 53 (DNS), IAM, CloudFront, and WAF.\n\n## Description\n\nThis project sets up an S3 bucket for storing your static website content, a CloudFront distribution for content delivery, a WAF WebACL for protecting your site, and a Route 53 record for DNS. It also creates an IAM user for managing continuous deployment to the s3 bucket.\n\n## How to Use\n\n1. **Clone the Repository**: Clone this repository to your local machine.\n\n2. **Install Terraform**: If you haven't already, [install Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli).\n\n3. **Configure AWS Credentials**: Ensure your AWS credentials are correctly configured. You can set them in your environment variables or in your AWS credentials file.\n\n4. **Update Credential**: Navigate to the project directory, update the `input.auto.tfvars` file to suite your project need and update `terraform.tf` backend object as deem fit or remove if you don't intent to save your states remotely.\n\n5. **Initialize Terraform**: Navigate to the project directory and run `terraform init` to initialize your Terraform workspace.\n\n6. **Apply the Configuration**: Run `terraform apply` to create the AWS resources. You'll be prompted to confirm that you want to create the resources.\n\n7. **Upload Your Website**: Once the resources are created, you can upload your static website content to the S3 bucket. The bucket name will be output by the `terraform apply` command.\n\n8. **Access Your Website**: After your content is uploaded, you can access your website via the CloudFront distribution URL, which will also be output by the `terraform apply` command.\n\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE.md](LICENSE.md) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiknowjavascript%2Fterraform-static-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiknowjavascript%2Fterraform-static-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiknowjavascript%2Fterraform-static-server/lists"}