{"id":37564183,"url":"https://github.com/dfds/aws-modules-cloudfront","last_synced_at":"2026-01-16T09:12:15.402Z","repository":{"id":97566955,"uuid":"596082056","full_name":"dfds/aws-modules-cloudfront","owner":"dfds","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-21T14:03:03.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-17T04:19:43.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfds.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}},"created_at":"2023-02-01T12:35:08.000Z","updated_at":"2023-02-01T12:35:16.000Z","dependencies_parsed_at":"2023-04-25T14:46:50.937Z","dependency_job_id":null,"html_url":"https://github.com/dfds/aws-modules-cloudfront","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"dfds/aws-modules-template","purl":"pkg:github/dfds/aws-modules-cloudfront","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfds%2Faws-modules-cloudfront","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfds%2Faws-modules-cloudfront/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfds%2Faws-modules-cloudfront/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfds%2Faws-modules-cloudfront/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfds","download_url":"https://codeload.github.com/dfds/aws-modules-cloudfront/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfds%2Faws-modules-cloudfront/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T09:12:14.678Z","updated_at":"2026-01-16T09:12:15.394Z","avatar_url":"https://github.com/dfds.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-modules-cloudfront\nModule for AWS Cloudfront distribution\n\n# Documentation\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.0.0 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 4.50.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 4.50.0 |\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_aliases\"\u003e\u003c/a\u003e [aliases](#input\\_aliases) | List of extra CNAMEs (alternate domain names), if any, for this distribution | `list(string)` | `[]` | no |\n| \u003ca name=\"input_allowed_methods\"\u003e\u003c/a\u003e [allowed\\_methods](#input\\_allowed\\_methods) | Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin | `list(string)` | n/a | yes |\n| \u003ca name=\"input_cache_policy_id\"\u003e\u003c/a\u003e [cache\\_policy\\_id](#input\\_cache\\_policy\\_id) | The unique identifier of the cache policy that is attached to the cache behavior | `string` | `\"\"` | no |\n| \u003ca name=\"input_cached_methods\"\u003e\u003c/a\u003e [cached\\_methods](#input\\_cached\\_methods) | Controls whether CloudFront caches the response to requests using the specified HTTP methods | `list(string)` | n/a | yes |\n| \u003ca name=\"input_comment\"\u003e\u003c/a\u003e [comment](#input\\_comment) | Any comments you want to include about the distribution | `string` | `\"\"` | no |\n| \u003ca name=\"input_compress\"\u003e\u003c/a\u003e [compress](#input\\_compress) | Whether you want CloudFront to automatically compress content for web requests that include `Accept-Encoding: gzip` in the request header | `bool` | `false` | no |\n| \u003ca name=\"input_custom_error_response\"\u003e\u003c/a\u003e [custom\\_error\\_response](#input\\_custom\\_error\\_response) | One or more custom error response elements (multiples allowed) | \u003cpre\u003elist(object({\u003cbr\u003e    error_code            = string\u003cbr\u003e    error_caching_min_ttl = number\u003cbr\u003e    response_code         = string\u003cbr\u003e    response_page_path    = string\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | 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_default_ttl\"\u003e\u003c/a\u003e [default\\_ttl](#input\\_default\\_ttl) | n/a | `number` | `3600` | 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_field_level_encryption_id\"\u003e\u003c/a\u003e [field\\_level\\_encryption\\_id](#input\\_field\\_level\\_encryption\\_id) | Field level encryption configuration ID | `string` | `\"\"` | no |\n| \u003ca name=\"input_forwarded_values\"\u003e\u003c/a\u003e [forwarded\\_values](#input\\_forwarded\\_values) | The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one) | \u003cpre\u003eobject({\u003cbr\u003e    query_string            = bool\u003cbr\u003e    headers                 = optional(list(string))\u003cbr\u003e    query_string_cache_keys = optional(list(string))\u003cbr\u003e    cookies = object({\u003cbr\u003e      forward           = string\u003cbr\u003e      whitelisted_names = optional(list(string))\u003cbr\u003e    })\u003cbr\u003e  })\u003c/pre\u003e | \u003cpre\u003e{\u003cbr\u003e  \"cookies\": {\u003cbr\u003e    \"forward\": \"none\"\u003cbr\u003e  },\u003cbr\u003e  \"query_string\": false\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_function_association\"\u003e\u003c/a\u003e [function\\_association](#input\\_function\\_association) | A config block that triggers a cloudfront function with specific actions (maximum 2) | \u003cpre\u003elist(object({\u003cbr\u003e    event_type = string\u003cbr\u003e    lambda_arn = string\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | 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 | `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` | `false` | no |\n| \u003ca name=\"input_lambda_function_association\"\u003e\u003c/a\u003e [lambda\\_function\\_association](#input\\_lambda\\_function\\_association) | A config block that triggers a lambda function with specific actions (maximum 4) | \u003cpre\u003elist(object({\u003cbr\u003e    event_type   = string\u003cbr\u003e    lambda_arn   = string\u003cbr\u003e    include_body = optional(bool)\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_logging_config\"\u003e\u003c/a\u003e [logging\\_config](#input\\_logging\\_config) | The logging configuration that controls how logs are written to your distribution (maximum one) | \u003cpre\u003eobject({\u003cbr\u003e    bucket          = string\u003cbr\u003e    include_cookies = optional(bool)\u003cbr\u003e    prefix          = optional(string)\u003cbr\u003e  })\u003c/pre\u003e | \u003cpre\u003e{\u003cbr\u003e  \"bucket\": null\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_max_ttl\"\u003e\u003c/a\u003e [max\\_ttl](#input\\_max\\_ttl) | The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires headers`. | `number` | `86400` | no |\n| \u003ca name=\"input_min_ttl\"\u003e\u003c/a\u003e [min\\_ttl](#input\\_min\\_ttl) | The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated | `number` | `0` | no |\n| \u003ca name=\"input_ordered_cache_behavior\"\u003e\u003c/a\u003e [ordered\\_cache\\_behavior](#input\\_ordered\\_cache\\_behavior) | An ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0 | `list(any)` | `[]` | no |\n| \u003ca name=\"input_origin\"\u003e\u003c/a\u003e [origin](#input\\_origin) | One or more origins for this distribution (multiples allowed) | \u003cpre\u003elist(object({\u003cbr\u003e    domain_name         = string\u003cbr\u003e    origin_id           = string\u003cbr\u003e    connection_attempts = optional(number)\u003cbr\u003e    connection_timeout  = optional(number)\u003cbr\u003e    custom_header = optional(list(object({\u003cbr\u003e      name  = optional(string)\u003cbr\u003e      value = optional(string)\u003cbr\u003e    })))\u003cbr\u003e    custom_origin_config = optional(object({\u003cbr\u003e      http_port                = optional(number)\u003cbr\u003e      https_port               = optional(number)\u003cbr\u003e      origin_protocol_policy   = optional(string)\u003cbr\u003e      origin_ssl_protocols     = optional(string)\u003cbr\u003e      origin_keepalive_timeout = optional(number)\u003cbr\u003e      origin_read_timeout      = optional(number)\u003cbr\u003e    }))\u003cbr\u003e    origin_access_control_id = optional(string)\u003cbr\u003e    origin_path              = optional(string)\u003cbr\u003e    origin_shield = optional(object({\u003cbr\u003e      enabled              = optional(bool)\u003cbr\u003e      origin_shield_region = optional(string)\u003cbr\u003e    }))\u003cbr\u003e    s3_origin_config = optional(object({\u003cbr\u003e      origin_access_identity = string\u003cbr\u003e    }))\u003cbr\u003e  }))\u003c/pre\u003e | n/a | yes |\n| \u003ca name=\"input_origin_group\"\u003e\u003c/a\u003e [origin\\_group](#input\\_origin\\_group) | One or more origin\\_group for this distribution (multiples allowed) | \u003cpre\u003elist(object({\u003cbr\u003e    origin_id = string\u003cbr\u003e    failover_criteria = object({\u003cbr\u003e      status_codes = list(number)\u003cbr\u003e    })\u003cbr\u003e    member = list(object({\u003cbr\u003e      origin_id = string\u003cbr\u003e    }))\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_price_class\"\u003e\u003c/a\u003e [price\\_class](#input\\_price\\_class) | The price class for this distribution | `string` | `\"PriceClass_100\"` | no |\n| \u003ca name=\"input_realtime_log_config_arn\"\u003e\u003c/a\u003e [realtime\\_log\\_config\\_arn](#input\\_realtime\\_log\\_config\\_arn) | The ARN of the real-time log configuration that is attached to this cache behavior | `string` | `\"\"` | no |\n| \u003ca name=\"input_response_headers_policy_id\"\u003e\u003c/a\u003e [response\\_headers\\_policy\\_id](#input\\_response\\_headers\\_policy\\_id) | The identifier for a response headers policy | `string` | `\"\"` | no |\n| \u003ca name=\"input_restrictions\"\u003e\u003c/a\u003e [restrictions](#input\\_restrictions) | The restriction configuration for this distribution (maximum one) | \u003cpre\u003eobject({\u003cbr\u003e    geo_restriction = object({\u003cbr\u003e      locations        = list(string)\u003cbr\u003e      restriction_type = string\u003cbr\u003e    })\u003cbr\u003e  })\u003c/pre\u003e | n/a | yes |\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_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | Tags for the CloudFront distribution | `object({})` | `{}` | no |\n| \u003ca name=\"input_target_origin_id\"\u003e\u003c/a\u003e [target\\_origin\\_id](#input\\_target\\_origin\\_id) | The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior | `string` | n/a | yes |\n| \u003ca name=\"input_trusted_key_groups\"\u003e\u003c/a\u003e [trusted\\_key\\_groups](#input\\_trusted\\_key\\_groups) | A list of key group IDs that CloudFront can use to validate signed URLs or signed cookies | `list(string)` | `[]` | no |\n| \u003ca name=\"input_trusted_signers\"\u003e\u003c/a\u003e [trusted\\_signers](#input\\_trusted\\_signers) | List of AWS account IDs (or `self`) that you want to allow to create signed URLs for private content | `list(string)` | `[]` | no |\n| \u003ca name=\"input_viewer_certificate\"\u003e\u003c/a\u003e [viewer\\_certificate](#input\\_viewer\\_certificate) | The SSL configuration for this distribution (maximum one). | \u003cpre\u003eobject({\u003cbr\u003e    acm_certificate_arn            = optional(string)\u003cbr\u003e    cloudfront_default_certificate = optional(bool)\u003cbr\u003e    iam_certificate_id             = optional(string)\u003cbr\u003e    minimum_protocol_version       = optional(string)\u003cbr\u003e    ssl_support_method             = optional(string)\u003cbr\u003e  })\u003c/pre\u003e | `{}` | no |\n| \u003ca name=\"input_viewer_protocol_policy\"\u003e\u003c/a\u003e [viewer\\_protocol\\_policy](#input\\_viewer\\_protocol\\_policy) | Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern | `string` | n/a | yes |\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 to `false` 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) | A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution | `string` | `\"\"` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_cloudfront_arn\"\u003e\u003c/a\u003e [cloudfront\\_arn](#output\\_cloudfront\\_arn) | ARN of the cloudfront distribution |\n| \u003ca name=\"output_domain_name\"\u003e\u003c/a\u003e [domain\\_name](#output\\_domain\\_name) | Domain name |\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfds%2Faws-modules-cloudfront","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfds%2Faws-modules-cloudfront","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfds%2Faws-modules-cloudfront/lists"}