Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

origin-access-control

This module creates following resources.

  • aws_cloudfront_origin_access_control

Requirements

Name Version
terraform >= 1.12
aws >= 6.20

Providers

Name Version
aws 6.24.0

Modules

No modules.

Resources

Name Type
aws_cloudfront_origin_access_control.this resource

Inputs

Name Description Type Default Required
name (Required) A name to identify the origin access control. string n/a yes
origin_type (Required) The type of origin that this origin access control is for. Valid values are LAMBDA, MEDIAPACKAGE_V2, MEDIASTORE and S3. string n/a yes
description (Optional) A description of the origin access control. string "Managed by Terraform." no
signing_behavior (Optional) Specify which requests CloudFront signs (adds authentication information to). Valid values are ALWAYS, NEVER, NO_OVERRIDE. Defaults to ALWAYS.
ALWAYS - CloudFront signs all origin requests, overwriting the Authorization header from the viewer request if one exists.
NEVER - CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.
NO_OVERRIDE - If the viewer request doesn't contain the Authorization header, then CloudFront signs the origin request. If the viewer request contains the Authorization header, then CloudFront doesn't sign the origin request and instead passes along the Authorization header from the viewer request.
string "ALWAYS" no

Outputs

Name Description
arn The ARN of the origin access control.
description The description of the origin access control.
etag The current version of the origin access control.
id The ID of the origin access control.
name The name of the CloudFront origin access control.
origin_type The type of origin that this origin access control is for.
signing_behavior Specify which requests CloudFront signs (adds authentication information to).
signing_protocol The signing protocol of the origin access control.