Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

vpc-origin

This module creates following resources.

  • aws_cloudfront_vpc_origin

Requirements

Name Version
terraform >= 1.12
aws >= 6.20

Providers

Name Version
aws 6.24.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.12.0
share tedilabs/organization/aws//modules/ram-share ~> 0.5.0

Resources

Name Type
aws_cloudfront_vpc_origin.this resource

Inputs

Name Description Type Default Required
endpoint (Required) The ARN of the VPC origin endpoint to associate with the CloudFront VPC Origin. The VPC origin endpoint must be an Application Load Balancer (ALB), Network Load Balancer (NLB), or EC2 instance in the same AWS Region as the CloudFront distribution. string n/a yes
name (Required) The name of the CloudFront VPC Origin. string n/a yes
http_port (Optional) The HTTP port for the CloudFront VPC origin endpoint configuration. Defaults to 80. number 80 no
https_port (Optional) The HTTPS port for the CloudFront VPC origin endpoint configuration. Defaults to 443. number 443 no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
protocol_policy (Optional) The origin protocol policy for the CloudFront VPC origin endpoint configuration. 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. string "MATCH_VIEWER" no
resource_group (Optional) A configurations of Resource Group for this module. resource_group as defined below.
(Optional) enabled - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to true.
(Optional) name - The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. If not provided, a name will be generated using the module name and instance name.
(Optional) description - The description of Resource Group. Defaults to Managed by Terraform..
object({
enabled = optional(bool, true)
name = optional(string, "")
description = optional(string, "Managed by Terraform.")
})
{} no
shares (Optional) A list of resource shares via RAM (Resource Access Manager).
list(object({
name = optional(string)

permissions = optional(set(string), ["AWSRAMDefaultPermissionCloudfrontVpcOrigin"])

external_principals_allowed = optional(bool, false)
principals = optional(set(string), [])

tags = optional(map(string), {})
}))
[] no
ssl_security_policy (Optional) The minimum SSL protocol that CloudFront uses with the origin. Valid values are SSLv3, TLSv1, TLSv1.1 or TLSv1.2. Defaults to TLSv1.2. string "TLSv1.2" no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
arn The ARN of the CloudFront VPC Origin.
endpoint The ARN of the CloudFront VPC Origin endpoint.
etag The ETag of the CloudFront VPC Origin.
http_port The HTTP port of the CloudFront VPC Origin.
https_port The HTTPS port of the CloudFront VPC Origin.
id The ID of the CloudFront VPC Origin.
name The name of the CloudFront VPC Origin.
protocol_policy The origin protocol policy applied to the CloudFront VPC Origin.
resource_group The resource group created to manage resources in this module.
sharing The configuration for sharing of the Cloudfront VPC Origin.
status - An indication of whether the VPC Origin is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME.
shares - The list of resource shares via RAM (Resource Access Manager).
ssl_security_policy The minimum SSL protocol that CloudFront uses with the origin.