{"id":21725464,"url":"https://github.com/jameswoolfenden/terraform-aws-cloudfront","last_synced_at":"2025-03-20T22:49:39.527Z","repository":{"id":81359177,"uuid":"213203005","full_name":"JamesWoolfenden/terraform-aws-cloudfront","owner":"JamesWoolfenden","description":"A basic module to provision cloudfront","archived":false,"fork":false,"pushed_at":"2023-04-26T16:04:48.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T19:28:05.483Z","etag":null,"topics":["aws","cloudfront","module","terraform"],"latest_commit_sha":null,"homepage":"","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/JamesWoolfenden.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":"2019-10-06T16:28:41.000Z","updated_at":"2023-08-31T17:32:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2dde8f9-d306-4e5d-9a6a-248c4e5043c3","html_url":"https://github.com/JamesWoolfenden/terraform-aws-cloudfront","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-cloudfront","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-cloudfront/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-cloudfront/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-cloudfront/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesWoolfenden","download_url":"https://codeload.github.com/JamesWoolfenden/terraform-aws-cloudfront/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244706500,"owners_count":20496570,"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","module","terraform"],"created_at":"2024-11-26T03:17:49.603Z","updated_at":"2025-03-20T22:49:39.522Z","avatar_url":"https://github.com/JamesWoolfenden.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-cloudfront\n\n[![Build Status](https://github.com/JamesWoolfenden/terraform-aws-cloudfront/workflows/Verify/badge.svg?branch=master)](https://github.com/JamesWoolfenden/terraform-aws-cloudfront)\n[![Latest Release](https://img.shields.io/github/release/JamesWoolfenden/terraform-aws-cloudfront.svg)](https://github.com/JamesWoolfenden/terraform-aws-cloudfront/releases/latest)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/JamesWoolfenden/terraform-aws-cloudfront.svg?label=latest)](https://github.com/JamesWoolfenden/terraform-aws-cloudfront/releases/latest)\n![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.14.0-blue.svg)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/JamesWoolfenden/terraform-aws-cloudfront/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=JamesWoolfenden%2Fterraform-aws-cloudfront\u0026benchmark=CIS+AWS+V1.2)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![checkov](https://img.shields.io/badge/checkov-verified-brightgreen)](https://www.checkov.io/)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/jameswoolfenden/terraform-aws-cloudfront/general)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=JamesWoolfenden%2Fterraform-aws-cloudfront\u0026benchmark=INFRASTRUCTURE+SECURITY)\n\nTerraform module to provision infra .\n\n---\n\nIt's 100% Open Source and licensed under the [APACHE2](LICENSE).\n\n## Introduction\n## Usage\n\nCreates a static site with cloudfront distribution in front\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | 4.64.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_cloudfront_distribution.distribution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution) | resource |\n| [aws_cloudfront_response_headers_policy.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_response_headers_policy) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_acm_certificate_arn\"\u003e\u003c/a\u003e [acm\\_certificate\\_arn](#input\\_acm\\_certificate\\_arn) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_aliases\"\u003e\u003c/a\u003e [aliases](#input\\_aliases) | n/a | `list(any)` | n/a | yes |\n| \u003ca name=\"input_cloudfront_default_certificate\"\u003e\u003c/a\u003e [cloudfront\\_default\\_certificate](#input\\_cloudfront\\_default\\_certificate) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_comment\"\u003e\u003c/a\u003e [comment](#input\\_comment) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_content_security_policy\"\u003e\u003c/a\u003e [content\\_security\\_policy](#input\\_content\\_security\\_policy) | n/a | `map` | \u003cpre\u003e{\u003cbr\u003e  \"content_security_policy\": \"default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'; frame-ancestors 'none'\",\u003cbr\u003e  \"override\": true\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_content_type_options\"\u003e\u003c/a\u003e [content\\_type\\_options](#input\\_content\\_type\\_options) | n/a | `bool` | `true` | no |\n| \u003ca name=\"input_default_cache\"\u003e\u003c/a\u003e [default\\_cache](#input\\_default\\_cache) | n/a | `map(any)` | n/a | yes |\n| \u003ca name=\"input_default_root_object\"\u003e\u003c/a\u003e [default\\_root\\_object](#input\\_default\\_root\\_object) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_distribution_enabled\"\u003e\u003c/a\u003e [distribution\\_enabled](#input\\_distribution\\_enabled) | n/a | `bool` | `true` | no |\n| \u003ca name=\"input_domain_name\"\u003e\u003c/a\u003e [domain\\_name](#input\\_domain\\_name) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_frame_options\"\u003e\u003c/a\u003e [frame\\_options](#input\\_frame\\_options) | n/a | `map` | \u003cpre\u003e{\u003cbr\u003e  \"frame_option\": \"DENY\",\u003cbr\u003e  \"override\": true\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_ipv6_enabled\"\u003e\u003c/a\u003e [ipv6\\_enabled](#input\\_ipv6\\_enabled) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_logging_config\"\u003e\u003c/a\u003e [logging\\_config](#input\\_logging\\_config) | n/a | `map(any)` | n/a | yes |\n| \u003ca name=\"input_logging_include_cookies\"\u003e\u003c/a\u003e [logging\\_include\\_cookies](#input\\_logging\\_include\\_cookies) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_origin\"\u003e\u003c/a\u003e [origin](#input\\_origin) | n/a | `map(any)` | n/a | yes |\n| \u003ca name=\"input_policy_name\"\u003e\u003c/a\u003e [policy\\_name](#input\\_policy\\_name) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_price_class\"\u003e\u003c/a\u003e [price\\_class](#input\\_price\\_class) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_referrer_policy\"\u003e\u003c/a\u003e [referrer\\_policy](#input\\_referrer\\_policy) | n/a | `map` | \u003cpre\u003e{\u003cbr\u003e  \"override\": true,\u003cbr\u003e  \"referrer_policy\": \"same-origin\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_restriction_locations\"\u003e\u003c/a\u003e [restriction\\_locations](#input\\_restriction\\_locations) | n/a | `list(any)` | n/a | yes |\n| \u003ca name=\"input_restriction_type\"\u003e\u003c/a\u003e [restriction\\_type](#input\\_restriction\\_type) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_ssl_support_method\"\u003e\u003c/a\u003e [ssl\\_support\\_method](#input\\_ssl\\_support\\_method) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_strict_transport_security\"\u003e\u003c/a\u003e [strict\\_transport\\_security](#input\\_strict\\_transport\\_security) | n/a | `map` | \u003cpre\u003e{\u003cbr\u003e  \"access_control_max_age_sec\": 31536000,\u003cbr\u003e  \"include_subdomains\": true,\u003cbr\u003e  \"override\": true,\u003cbr\u003e  \"preload\": true\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | n/a | `map(any)` | n/a | yes |\n| \u003ca name=\"input_web_acl_id\"\u003e\u003c/a\u003e [web\\_acl\\_id](#input\\_web\\_acl\\_id) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_xss_protection\"\u003e\u003c/a\u003e [xss\\_protection](#input\\_xss\\_protection) | n/a | `map` | \u003cpre\u003e{\u003cbr\u003e  \"mode_block\": true,\u003cbr\u003e  \"override\": true,\u003cbr\u003e  \"protection\": true\u003cbr\u003e}\u003c/pre\u003e | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_distribution\"\u003e\u003c/a\u003e [distribution](#output\\_distribution) | n/a |\n| \u003ca name=\"output_domain_name\"\u003e\u003c/a\u003e [domain\\_name](#output\\_domain\\_name) | n/a |\n| \u003ca name=\"output_hosted_zone_id\"\u003e\u003c/a\u003e [hosted\\_zone\\_id](#output\\_hosted\\_zone\\_id) | n/a |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Policy\n\n\u003c!-- BEGINNING OF PRE-COMMIT-PIKE DOCS HOOK --\u003e\nThe Terraform resource required is:\n\n```golang\nresource \"aws_iam_policy\" \"terraform_pike\" {\n  name_prefix = \"terraform_pike\"\n  path        = \"/\"\n  description = \"Pike Autogenerated policy from IAC\"\n\n  policy = jsonencode({\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Sid\": \"VisualEditor0\",\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"cloudfront:CreateDistribution\",\n                \"cloudfront:DeleteDistribution\",\n                \"cloudfront:GetDistribution\",\n                \"cloudfront:ListTagsForResource\",\n                \"cloudfront:TagResource\",\n                \"cloudfront:UntagResource\",\n                \"cloudfront:UpdateDistribution\"\n            ],\n            \"Resource\": [\n                \"*\"\n            ]\n        },\n        {\n            \"Sid\": \"VisualEditor1\",\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"ec2:DescribeAccountAttributes\"\n            ],\n            \"Resource\": [\n                \"*\"\n            ]\n        }\n    ]\n})\n}\n\n\n```\n\u003c!-- END OF PRE-COMMIT-PIKE DOCS HOOK --\u003e\n\n## Help\n\n**Got a question?**\n\nFile a GitHub [issue](https://github.com/JamesWoolfenden/terraform-aws-cloudfront/issues).\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/JamesWoolfenden/terraform-aws-cloudfront/issues) to report any bugs or file feature requests.\n\n## Copyrights\n\nCopyright © 2018-2023 James Woolfenden\n\n## License\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSee [LICENSE](LICENSE) for full details.\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n\u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\n### Contributors\n\n[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]\u003cbr/\u003e[James Woolfenden][jameswoolfenden_homepage]\n\n[jameswoolfenden_homepage]: https://github.com/jameswoolfenden\n[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fterraform-aws-cloudfront","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameswoolfenden%2Fterraform-aws-cloudfront","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fterraform-aws-cloudfront/lists"}