| <a name="input_custom_origins"></a> [custom\_origins](#input\_custom\_origins) | (Optional) A configuration for custom origins of the distribution. Each key defines a name of each custom origin. Each value of `custom_origins` as defined below.<br/> (Required) `host` - The DNS domain name of either the web site of your custom origin.<br/> (Optional) `path` - The URL path to append to `host` which the origin domain name for origin requests. Enter the directory path, beginning with a slash (/). Do not add a slash (/) at the end of the path.<br/> (Optional) `http_port` - The HTTP port the custom origin listens on. Defaults to `80`.<br/> (Optional) `https_port` - The HTTPS port the custom origin listens on. Defaults to `443`.<br/> (Optional) `origin_access` - The configuration of origin access for the origin. `origin_access` block as defined below.<br/> (Optional) `type` - The type of origin access. Valid values are `CONTROL` and `NONE`. Defaults to `NONE`.<br/> (Optional) `id` - The ID of origin access control if `type` is `CONTROL`.<br/> (Optional) `protocol_policy` - The origin protocol policy to apply to your origin. The origin protocol policy determines the protocol (HTTP or HTTPS) that you want CloudFront to use when connecting to the origin. Valid values are `HTTP_ONLY`, `HTTPS_ONLY` or `MATCH_VIEWER`. Defaults to `MATCH_VIEWER`.<br/> (Optional) `ssl_security_policy` - The minimum SSL/TLS protocol that CloudFront uses with the origin over HTTPS. Valid values are `SSLv3`, `TLSv1`, `TLSv1.1`, and `TLSv1.2`. Defaults to `TLSv1.1`. Recommend the latest TLS protocol that the origin supports.<br/> (Optional) `custom_headers` - A map of custom HTTP headers to include in all requests to the origin. Each key/value is mapping to HTTP header `name`/`value`.<br/> (Optional) `origin_shield` - Origin Shield is an additional caching layer that can help reduce the load on your origin and help protect its availability. `origin_shield` block as defined below.<br/> (Required) `enabled` - Whether to enable Origin Shield. Defaults to `false`.<br/> (Required) `region` - The AWS Region for Origin Shield. To specify a region. For example, specify the US East (Ohio) region as `us-east-2`.<br/> (Optional) `connection_attempts` - The number of times that CloudFront attempts to connect to the origin, from `1` to `3`. Defaults to `3`.<br/> (Optional) `connection_timeout` - The number of seconds that CloudFront waits for a response from the origin, from `1` to `10`. Defaults to `10`.<br/> (Optional) `keepalive_timeout` - The number of seconds that CloudFront maintains an idle connection with the origin, from `1` to `60`. But, the maximum can be changed arbitrarily by AWS Support to a much higher value. Defaults to `5`.<br/> (Optional) `response_timeout` - The number of seconds that CloudFront waits for a response from the origin, from `1` to `60`. Defaults to `30`. | <pre>map(object({<br/> host = string<br/> path = optional(string)<br/> http_port = optional(number, 80)<br/> https_port = optional(number, 443)<br/> origin_access = optional(object({<br/> type = optional(string, "NONE")<br/> id = optional(string)<br/> }))<br/> protocol_policy = optional(string, "MATCH_VIEWER")<br/> ssl_security_policy = optional(string, "TLSv1.1")<br/> custom_headers = optional(map(string), {})<br/> origin_shield = optional(object({<br/> enabled = bool<br/> region = string<br/> }))<br/> connection_attempts = optional(number, 3)<br/> connection_timeout = optional(number, 10)<br/> keepalive_timeout = optional(number, 5)<br/> response_timeout = optional(number, 30)<br/> }))</pre> | `{}` | no |
0 commit comments