{"id":50745112,"url":"https://github.com/viniciustrainotti/terraform-aws-static-website-module","last_synced_at":"2026-06-10T20:01:39.813Z","repository":{"id":59867182,"uuid":"526451580","full_name":"viniciustrainotti/terraform-aws-static-website-module","owner":"viniciustrainotti","description":"This module provisions AWS S3 buckets with AWS CloudFront configured for static website hosting and possibility improve security with AWS WAF and AWS domain configuration with AWS ACM \u0026 AWS Route53 optionally.","archived":false,"fork":false,"pushed_at":"2022-11-16T23:21:15.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-02T11:08:37.282Z","etag":null,"topics":["aws","devops","infrastructure-as-code","module","reactjs","terraform","terraform-module","terraform-modules","website"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/viniciustrainotti/static-website-module/aws/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viniciustrainotti.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}},"created_at":"2022-08-19T03:34:45.000Z","updated_at":"2023-01-14T03:45:51.000Z","dependencies_parsed_at":"2023-01-23T12:16:17.809Z","dependency_job_id":null,"html_url":"https://github.com/viniciustrainotti/terraform-aws-static-website-module","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/viniciustrainotti/terraform-aws-static-website-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciustrainotti%2Fterraform-aws-static-website-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciustrainotti%2Fterraform-aws-static-website-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciustrainotti%2Fterraform-aws-static-website-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciustrainotti%2Fterraform-aws-static-website-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viniciustrainotti","download_url":"https://codeload.github.com/viniciustrainotti/terraform-aws-static-website-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciustrainotti%2Fterraform-aws-static-website-module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34168086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","devops","infrastructure-as-code","module","reactjs","terraform","terraform-module","terraform-modules","website"],"created_at":"2026-06-10T20:01:37.642Z","updated_at":"2026-06-10T20:01:39.788Z","avatar_url":"https://github.com/viniciustrainotti.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Static Website Terraform module\n\n[![Terraform Registry - latest](https://img.shields.io/badge/Terraform_Registry-latest-2ea44f?style=for-the-badge\u0026logo=terraform)](https://registry.terraform.io/modules/viniciustrainotti/static-website-module/aws/latest?tab=readme)\n[![License - Apache](https://img.shields.io/badge/License-Apache-2ea44f?style=for-the-badge)](https://github.com/viniciustrainotti/terraform-aws-static-website-module/blob/master/LICENSE)\n\nThis module provisions AWS S3 buckets with AWS CloudFront configured for static website hosting \nand possibility improve security with AWS WAF and AWS domain configuration with AWS ACM \u0026 AWS Route53 optionally.\n\n## Usage\n\n```terraform\nmodule \"website\" {\n  source = \"viniciustrainotti/static-website-module/aws\"\n\n  aws_profile             = \"default\"\n  domain                  = \"example.com\"\n  application_name        = \"example\"\n  website_path            = \"/example/path/react/build\"\n  subdomains              = [\"app\", \"www\"]\n  default_root_index_file = \"index.html\"\n\n  tags = { Application = \"example\", Environment = \"dev\" }\n}\n```\n\n## Examples\n\n- [Basic Example](https://github.com/viniciustrainotti/terraform-aws-static-website-module/tree/master/examples/basic)\n- [Complete Example](https://github.com/viniciustrainotti/terraform-aws-static-website-module/tree/master/examples/complete)\n\n## Requirements\n\n| Name      | Version |\n|:----------|:-------:|\n| terraform | 1.2.3   |\n| aws-cli   | 2.4.2   |\n\n## Providers\n\n| Name | Version   |\n|:-----|:---------:|\n| aws  | \u003e= 4.19.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name                                                              | Type        |\n|:----------------------------------------------------------------- |:-----------:|\n| aws_route53_zone.this                                             | data source |\n| aws_iam_policy_document                                           | data source |\n| aws_acm_certificate.this                                          | resource    |\n| aws_acm_certificate_validation.this                               | resource    |\n| aws_cloudfront_origin_access_identity.this                        | resource    |\n| aws_cloudfront_distribution.this                                  | resource    |\n| aws_route53_record.website                                        | resource    |\n| aws_route53_record.subdomain                                      | resource    |\n| aws_route53_record.cert_validation                                | resource    |\n| aws_s3_bucket_policy.react_app_bucket_policy                      | resource    |\n| aws_s3_bucket.logs                                                | resource    |\n| aws_s3_bucket_acl.acl_logs                                        | resource    |\n| aws_s3_bucket.website                                             | resource    |\n| aws_s3_bucket_public_access_block.block_public_access             | resource    |\n| aws_s3_bucket_versioning.versioning                               | resource    |\n| aws_s3_bucket_acl.acl_website                                     | resource    |\n| aws_s3_bucket_website_configuration.bucket_website_configuration  | resource    |\n| aws_s3_bucket_logging.logging                                     | resource    |\n| aws_s3_object.this                                                | resource    |\n\n## Inputs\n\n| Name                    | Description                                       | Type            | Default       | Required |\n|:----------------------- |:------------------------------------------------- |:--------------- |:------------- |:-------- |\n| application_name        | Define application name to set default resources  | `string`        | `\"default\"`   | yes      |\n| website_path            | Website path to project files to uploads it       | `string`        | `\"\"`          | yes      |\n| aws_profile             | Profile set of your AWS account                   | `string`        | `\"default\"`   | no       | \n| domain                  | Set root domain                                   | `string`        | `\"\"`          | no       |\n| subdomains ¹            | List contains subdomains                          | `list(string)`  | `[]`          | no       |\n| tags                    | Define tags to set in resources                   | `map(string)`   | `{}`          | no       |\n| default_root_index_file | Default root index file to resources              | `string`        | `\"index.html\"`| no       |\n| enable_waf              | Enable or disable to create AWS WAF resource      | `bool`          | `false`       | no       |\n\n¹ If domain is not set, remove it.\n\n## Outputs\n\n| Name            | Description       |\n|:--------------- |:-----------------:|\n| website-url     | Website URL       |\n| bucket_logs     | Bucket Logs ID    |\n| bucket_website  | Bucket Website ID |\n| distribution-id | Cloudfront ID     |\n| cdn-url         | Cloudfront URL    |\n\n## Authors\n\nModule is maintained by [Vinícius Trainotti](https://github.com/viniciustrainotti) with help [from these awesome contributors](https://github.com/viniciustrainotti/terraform-aws-static-website-module/graphs/contributors).\n\n## License\n\nApache 2 Licensed. See [LICENSE](https://github.com/viniciustrainotti/terraform-aws-static-website-module/blob/master/LICENSE) for full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciustrainotti%2Fterraform-aws-static-website-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviniciustrainotti%2Fterraform-aws-static-website-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciustrainotti%2Fterraform-aws-static-website-module/lists"}