Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

origin-request-policy

This module creates following resources.

  • aws_cloudfront_origin_request_policy

Requirements

Name Version
terraform >= 1.12
aws >= 6.20

Providers

Name Version
aws 6.23.0

Modules

No modules.

Resources

Name Type
aws_cloudfront_origin_request_policy.this resource

Inputs

Name Description Type Default Required
name (Required) A unique name to identify the CloudFront Origin Request Policy. string n/a yes
description (Optional) The description of the origin request policy. string "Managed by Terraform." no
forwarding_cookies (Optional) A configuration for specifying which cookies in viewer requests to be forwarded in the origin requests. forwarding_cookies as defined below.
(Required) behavior - Determine whether any cookies in viewer requests are forwarded in the origin requests. Valid values are NONE, WHITELIST, ALL, BLACKLIST. Defaults to NONE.
(Optional) items - A list of cookie names. It only takes effect when behavior are WHITELIST, BLACKLIST.
object({
behavior = optional(string, "NONE")
items = optional(set(string), [])
})
{} no
forwarding_headers (Optional) A configuration for specifying which headers in viewer requests to be forwarded in the origin requests. forwarding_headers as defined below.
(Required) behavior - Determine whether any headers in viewer requests are forwarded in the origin requests. Valid values are NONE, WHITELIST, BLACKLIST, ALL_VIEWER and ALL_VIEWER_AND_CLOUDFRONT_WHITELIST. Defaults to NONE.
(Optional) items - A list of header names. It only takes effect when behavior are WHITELIST, BLACKLIST or ALL_VIEWER_AND_CLOUDFRONT_WHITELIST.
object({
behavior = optional(string, "NONE")
items = optional(set(string), [])
})
{} no
forwarding_query_strings (Optional) A configuration for specifying which query strings in viewer requests to be forwarded in the origin requests. forwarding_query_strings as defined below.
(Required) behavior - Determine whether any query strings in viewer requests are forwarded in the origin requests. Valid values are NONE, WHITELIST, BLACKLIST, ALL. Defaults to NONE.
(Optional) items - A list of query string names. It only takes effect when behavior are WHITELIST, BLACKLIST.
object({
behavior = optional(string, "NONE")
items = optional(set(string), [])
})
{} no

Outputs

Name Description
arn The ARN of the CloudFront origin request policy.
description The description of the origin request policy.
etag The current version of the origin request policy.
forwarding_cookies A configuration for specifying which cookies to be forwarded in the origin requests.
forwarding_headers A configuration for specifying which headers to be forwarded in the origin requests.
forwarding_query_strings A configuration for specifying which query strings to be forwarded in the origin requests.
id The identifier for the CloudFront origin request policy.
name The name of the CloudFront origin request policy.