{"id":15866952,"url":"https://github.com/ksatirli/terraform-aws-cloudfront-website","last_synced_at":"2026-03-09T14:06:45.651Z","repository":{"id":83572035,"uuid":"273304896","full_name":"ksatirli/terraform-aws-cloudfront-website","owner":"ksatirli","description":"Terraform Module for managing AWS CloudFront Websites","archived":false,"fork":false,"pushed_at":"2023-12-11T18:37:27.000Z","size":224,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T08:06:55.320Z","etag":null,"topics":["aws","cloudfront","static-site","terraform-modules"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/ksatirli/cloudfront-website/aws/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksatirli.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-18T17:52:40.000Z","updated_at":"2023-03-20T11:57:38.000Z","dependencies_parsed_at":"2024-10-05T23:40:42.082Z","dependency_job_id":null,"html_url":"https://github.com/ksatirli/terraform-aws-cloudfront-website","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ksatirli/terraform-aws-cloudfront-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksatirli%2Fterraform-aws-cloudfront-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksatirli%2Fterraform-aws-cloudfront-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksatirli%2Fterraform-aws-cloudfront-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksatirli%2Fterraform-aws-cloudfront-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksatirli","download_url":"https://codeload.github.com/ksatirli/terraform-aws-cloudfront-website/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksatirli%2Fterraform-aws-cloudfront-website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T13:46:43.843Z","status":"ssl_error","status_checked_at":"2026-03-09T13:46:42.821Z","response_time":61,"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":["aws","cloudfront","static-site","terraform-modules"],"created_at":"2024-10-05T23:40:36.314Z","updated_at":"2026-03-09T14:06:45.607Z","avatar_url":"https://github.com/ksatirli.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS: S3-backed CloudFront Distribution\n\nThis Terraform Module provisions an S3-backed CloudFront Distribution for HTTP serving.\n\n## Table of Contents\n\n\u003c!-- TOC --\u003e\n* [AWS: S3-backed CloudFront Distribution](#aws--s3-backed-cloudfront-distribution)\n  * [Table of Contents](#table-of-contents)\n  * [Overview](#overview)\n  * [Requirements](#requirements)\n  * [Usage](#usage)\n    * [Inputs](#inputs)\n    * [Outputs](#outputs)\n  * [Author Information](#author-information)\n  * [License](#license)\n\u003c!-- TOC --\u003e\n\n## Overview\n\n![Terraform Module: AWS CloudFront Websites](https://raw.githubusercontent.com/operatehappy/terraform-aws-cloudfront-website/master/overview.png \"Terraform Module: AWS CloudFront Websites\")\n\n## Requirements\n\n* Amazon Web Services (AWS) [Account](https://aws.amazon.com/account/)\n* Terraform `1.3.x` or newer.\n\n## Usage\n\nFor examples, see the [./examples](https://github.com/ksatirli/terraform-aws-cloudfront-website/tree/main/examples/) directory.\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n### Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| domain_name | The Domain Name of the Route53 Zone. | `string` | n/a | yes |\n| s3_bucket_name | The name of the bucket. | `string` | n/a | yes |\n| subdomain_name | The Subdomain Name of the Route53 Record. | `string` | n/a | yes |\n| alternate_subdomain_names | The Alternate (Sub)-Domain Names to provide to ACM and CloudFront. | `list(string)` | `[]` | no |\n| cloudfront_cache_policy | The Identifier for a Cache Policy. | `string` | `\"Managed-CachingOptimized\"` | no |\n| cloudfront_custom_error_responses | List of Custom Error Response Element Objects for the distribution. | \u003cpre\u003elist(object({\u003cbr\u003e    error_caching_min_ttl = optional(number)\u003cbr\u003e    error_code            = number\u003cbr\u003e    response_code         = optional(number)\u003cbr\u003e    response_page_path    = optional(string)\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| cloudfront_default_root_object | The object that you want CloudFront to return when an end user requests the root URL. | `string` | `\"index.html\"` | no |\n| cloudfront_enabled | Whether the distribution is enabled to accept end user requests for content. | `bool` | `true` | no |\n| cloudfront_http_version | The maximum HTTP version to support on the distribution. | `string` | `\"http2and3\"` | no |\n| cloudfront_is_ipv6_enabled | Whether the IPv6 is enabled for the distribution. | `bool` | `true` | no |\n| cloudfront_minimum_protocol_version | The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. | `string` | `\"TLSv1.2_2021\"` | no |\n| cloudfront_origin_request_policy | The Identifier for an Origin Request Policy. | `string` | `\"Managed-CORS-S3Origin\"` | no |\n| cloudfront_price_class | The price class for this distribution. | `string` | `\"PriceClass_100\"` | no |\n| cloudfront_response_headers_policy | The Identifier for a Response Headers Policy. | `string` | `\"Managed-SimpleCORS\"` | no |\n| cloudfront_retain_on_delete | Whether to retain (instead of delete) the CloudFront Distribution on `terraform destroy`. | `bool` | `false` | no |\n| cloudfront_ssl_support_method | Specifies how you want CloudFront to serve HTTPS requests. | `string` | `\"sni-only\"` | no |\n| tags | A map of tags to assign to all resources. | `map(string)` | `{}` | no |\n\n### Outputs\n\n| Name | Description |\n|------|-------------|\n| aws_acm_certificate_validation | Exported Attributes for `module.acm_certificate.aws_acm_certificate_validation`. |\n| aws_cloudfront_distribution | Exported Attributes for `aws_cloudfront_distribution`. |\n| aws_route53_record | Exported Attributes for `aws_route53_record.main`. |\n| aws_s3_bucket | Exported Attributes for `aws_s3_bucket.main`. |\n| aws_s3_bucket_policy | Exported Attributes for `aws_s3_bucket_policy.main`. |\n| aws_s3_bucket_public_access_block | Exported Attributes for `aws_s3_bucket_public_access_block.main`. |\n\u003c!-- END_TF_DOCS --\u003e\n\n## Author Information\n\nThis module is maintained by the contributors listed on [GitHub](https://github.com/ksatirli/terraform-aws-cloudfront-website/graphs/contributors).\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\").\n\nYou may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an _\"AS IS\"_ basis, without WARRANTIES or conditions of any kind, either express or implied.\n\nSee the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksatirli%2Fterraform-aws-cloudfront-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksatirli%2Fterraform-aws-cloudfront-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksatirli%2Fterraform-aws-cloudfront-website/lists"}