{"id":20656355,"url":"https://github.com/flaconi/terraform-aws-cloudfront-distribution","last_synced_at":"2025-09-08T07:41:01.873Z","repository":{"id":38241461,"uuid":"225368045","full_name":"Flaconi/terraform-aws-cloudfront-distribution","owner":"Flaconi","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-14T14:26:32.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-31T21:12:39.589Z","etag":null,"topics":["aws","terraform","terraform-module"],"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/Flaconi.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,"zenodo":null}},"created_at":"2019-12-02T12:17:45.000Z","updated_at":"2024-09-11T10:56:48.000Z","dependencies_parsed_at":"2025-04-20T13:32:24.163Z","dependency_job_id":null,"html_url":"https://github.com/Flaconi/terraform-aws-cloudfront-distribution","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Flaconi/terraform-aws-cloudfront-distribution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fterraform-aws-cloudfront-distribution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fterraform-aws-cloudfront-distribution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fterraform-aws-cloudfront-distribution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fterraform-aws-cloudfront-distribution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flaconi","download_url":"https://codeload.github.com/Flaconi/terraform-aws-cloudfront-distribution/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fterraform-aws-cloudfront-distribution/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274152765,"owners_count":25231293,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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","terraform","terraform-module"],"created_at":"2024-11-16T18:14:55.033Z","updated_at":"2025-09-08T07:41:01.829Z","avatar_url":"https://github.com/Flaconi.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS Cloudfront distribution module\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.12.26 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 3 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 3 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_cloudfront_distribution.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_default_cache_behavior\"\u003e\u003c/a\u003e [default\\_cache\\_behavior](#input\\_default\\_cache\\_behavior) | Default Cache Behviors to be used in dynamic block | `any` | n/a | yes |\n| \u003ca name=\"input_iam_certificate_id\"\u003e\u003c/a\u003e [iam\\_certificate\\_id](#input\\_iam\\_certificate\\_id) | Specifies IAM certificate id for CloudFront distribution | `string` | n/a | yes |\n| \u003ca name=\"input_minimum_protocol_version\"\u003e\u003c/a\u003e [minimum\\_protocol\\_version](#input\\_minimum\\_protocol\\_version) | The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. One of SSLv3, TLSv1, TLSv1\\_2016, TLSv1.1\\_2016 or TLSv1.2\\_2018. Default: TLSv1. NOTE: If you are using a custom certificate (specified with acm\\_certificate\\_arn or iam\\_certificate\\_id), and have specified sni-only in ssl\\_support\\_method, TLSv1 or later must be specified. If you have specified vip in ssl\\_support\\_method, only SSLv3 or TLSv1 can be specified. If you have specified cloudfront\\_default\\_certificate, TLSv1 must be specified. | `string` | n/a | yes |\n| \u003ca name=\"input_aliases\"\u003e\u003c/a\u003e [aliases](#input\\_aliases) | Aliases, or CNAMES, for the distribution | `list(string)` | `[]` | no |\n| \u003ca name=\"input_comment\"\u003e\u003c/a\u003e [comment](#input\\_comment) | Any comment about the CloudFront Distribution | `string` | `\"\"` | no |\n| \u003ca name=\"input_create\"\u003e\u003c/a\u003e [create](#input\\_create) | Set to false to prevent the module from creating any resources | `bool` | `true` | no |\n| \u003ca name=\"input_custom_error_response\"\u003e\u003c/a\u003e [custom\\_error\\_response](#input\\_custom\\_error\\_response) | Custom error response to be used in dynamic block | \u003cpre\u003elist(object({\u003cbr\u003e    error_caching_min_ttl = number\u003cbr\u003e    error_code            = number\u003cbr\u003e    response_code         = number\u003cbr\u003e    response_page_path    = string\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_custom_origin_config\"\u003e\u003c/a\u003e [custom\\_origin\\_config](#input\\_custom\\_origin\\_config) | Configuration for the custom origin config to be used in dynamic block | `any` | `[]` | no |\n| \u003ca name=\"input_default_root_object\"\u003e\u003c/a\u003e [default\\_root\\_object](#input\\_default\\_root\\_object) | The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL | `string` | `\"\"` | no |\n| \u003ca name=\"input_dynamic_s3_origin_config\"\u003e\u003c/a\u003e [dynamic\\_s3\\_origin\\_config](#input\\_dynamic\\_s3\\_origin\\_config) | Configuration for the s3 origin config to be used in dynamic block | `list(map(string))` | `[]` | no |\n| \u003ca name=\"input_enabled\"\u003e\u003c/a\u003e [enabled](#input\\_enabled) | Whether the distribution is enabled to accept end user requests for content | `bool` | `true` | no |\n| \u003ca name=\"input_geo_restriction\"\u003e\u003c/a\u003e [geo\\_restriction](#input\\_geo\\_restriction) | The restriction type of your CloudFront distribution geolocation restriction. Options include none, whitelist, blacklist | \u003cpre\u003eobject({\u003cbr\u003e    restriction_type = string\u003cbr\u003e    locations        = list(string)\u003cbr\u003e  })\u003c/pre\u003e | `null` | no |\n| \u003ca name=\"input_http_version\"\u003e\u003c/a\u003e [http\\_version](#input\\_http\\_version) | The maximum HTTP version to support on the distribution. Allowed values are http1.1 and http2 | `string` | `\"http2\"` | no |\n| \u003ca name=\"input_is_ipv6_enabled\"\u003e\u003c/a\u003e [is\\_ipv6\\_enabled](#input\\_is\\_ipv6\\_enabled) | Whether the IPv6 is enabled for the distribution | `bool` | `true` | no |\n| \u003ca name=\"input_logging_config\"\u003e\u003c/a\u003e [logging\\_config](#input\\_logging\\_config) | This is the logging configuration for the Cloudfront Distribution.  It is not required.\u003cbr\u003e    If you choose to use this configuration, be sure you have the correct IAM and Bucket ACL\u003cbr\u003e    rules.  Your tfvars file should follow this syntax:\u003cbr\u003e\u003cbr\u003e    logging\\_config = {\u003cbr\u003e      bucket = \"\u003cyour-bucket\u003e\"\u003cbr\u003e      include\\_cookies = \u003ctrue or false\u003e\u003cbr\u003e      prefix = \"\u003cyour-bucket-prefix\u003e\"\u003cbr\u003e    } | `map(any)` | `{}` | no |\n| \u003ca name=\"input_ordered_cache_behavior\"\u003e\u003c/a\u003e [ordered\\_cache\\_behavior](#input\\_ordered\\_cache\\_behavior) | Ordered Cache Behaviors to be used in dynamic block | `any` | `[]` | no |\n| \u003ca name=\"input_origin_groups\"\u003e\u003c/a\u003e [origin\\_groups](#input\\_origin\\_groups) | Origin Group to be used in dynamic block | `any` | `[]` | no |\n| \u003ca name=\"input_price_class\"\u003e\u003c/a\u003e [price\\_class](#input\\_price\\_class) | The price class of the CloudFront Distribution.  Valid types are PriceClass\\_All, PriceClass\\_100, PriceClass\\_200 | `string` | `\"PriceClass_100\"` | no |\n| \u003ca name=\"input_region\"\u003e\u003c/a\u003e [region](#input\\_region) | Target AWS region | `string` | `\"us-east-1\"` | no |\n| \u003ca name=\"input_retain_on_delete\"\u003e\u003c/a\u003e [retain\\_on\\_delete](#input\\_retain\\_on\\_delete) | Disables the distribution instead of deleting it when destroying the resource through Terraform. If this is set, the distribution needs to be deleted manually afterwards. | `bool` | `false` | no |\n| \u003ca name=\"input_s3_origin_config\"\u003e\u003c/a\u003e [s3\\_origin\\_config](#input\\_s3\\_origin\\_config) | Configuration for the custom origin config to be used in dynamic block | `any` | `[]` | no |\n| \u003ca name=\"input_ssl_support_method\"\u003e\u003c/a\u003e [ssl\\_support\\_method](#input\\_ssl\\_support\\_method) | Specifies how you want CloudFront to serve HTTPS requests. One of vip or sni-only. | `string` | `\"sni-only\"` | no |\n| \u003ca name=\"input_tag_name\"\u003e\u003c/a\u003e [tag\\_name](#input\\_tag\\_name) | The tagged name | `string` | `\"\"` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | Map of custom tags for the provisioned resources | `map(string)` | `{}` | no |\n| \u003ca name=\"input_wait_for_deployment\"\u003e\u003c/a\u003e [wait\\_for\\_deployment](#input\\_wait\\_for\\_deployment) | If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process. | `bool` | `true` | no |\n| \u003ca name=\"input_web_acl_id\"\u003e\u003c/a\u003e [web\\_acl\\_id](#input\\_web\\_acl\\_id) | The WAF Web ACL | `string` | `\"\"` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_id\"\u003e\u003c/a\u003e [id](#output\\_id) | The identifier for the distribution. For example: EDFDVBD632BHDS5. |\n| \u003ca name=\"output_name\"\u003e\u003c/a\u003e [name](#output\\_name) | The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net |\n\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaconi%2Fterraform-aws-cloudfront-distribution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaconi%2Fterraform-aws-cloudfront-distribution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaconi%2Fterraform-aws-cloudfront-distribution/lists"}