|
| 1 | +# vpc-origin |
| 2 | + |
| 3 | +This module creates following resources. |
| 4 | + |
| 5 | +- `aws_cloudfront_vpc_origin` |
| 6 | + |
| 7 | +<!-- BEGIN_TF_DOCS --> |
| 8 | +## Requirements |
| 9 | + |
| 10 | +| Name | Version | |
| 11 | +|------|---------| |
| 12 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.12 | |
| 13 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.20 | |
| 14 | + |
| 15 | +## Providers |
| 16 | + |
| 17 | +| Name | Version | |
| 18 | +|------|---------| |
| 19 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.24.0 | |
| 20 | + |
| 21 | +## Modules |
| 22 | + |
| 23 | +| Name | Source | Version | |
| 24 | +|------|--------|---------| |
| 25 | +| <a name="module_resource_group"></a> [resource\_group](#module\_resource\_group) | tedilabs/misc/aws//modules/resource-group | ~> 0.12.0 | |
| 26 | +| <a name="module_share"></a> [share](#module\_share) | tedilabs/organization/aws//modules/ram-share | ~> 0.5.0 | |
| 27 | + |
| 28 | +## Resources |
| 29 | + |
| 30 | +| Name | Type | |
| 31 | +|------|------| |
| 32 | +| [aws_cloudfront_vpc_origin.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_vpc_origin) | resource | |
| 33 | + |
| 34 | +## Inputs |
| 35 | + |
| 36 | +| Name | Description | Type | Default | Required | |
| 37 | +|------|-------------|------|---------|:--------:| |
| 38 | +| <a name="input_endpoint"></a> [endpoint](#input\_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 | |
| 39 | +| <a name="input_name"></a> [name](#input\_name) | (Required) The name of the CloudFront VPC Origin. | `string` | n/a | yes | |
| 40 | +| <a name="input_http_port"></a> [http\_port](#input\_http\_port) | (Optional) The HTTP port for the CloudFront VPC origin endpoint configuration. Defaults to `80`. | `number` | `80` | no | |
| 41 | +| <a name="input_https_port"></a> [https\_port](#input\_https\_port) | (Optional) The HTTPS port for the CloudFront VPC origin endpoint configuration. Defaults to `443`. | `number` | `443` | no | |
| 42 | +| <a name="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled) | (Optional) Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no | |
| 43 | +| <a name="input_protocol_policy"></a> [protocol\_policy](#input\_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 | |
| 44 | +| <a name="input_resource_group"></a> [resource\_group](#input\_resource\_group) | (Optional) A configurations of Resource Group for this module. `resource_group` as defined below.<br/> (Optional) `enabled` - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to `true`.<br/> (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.<br/> (Optional) `description` - The description of Resource Group. Defaults to `Managed by Terraform.`. | <pre>object({<br/> enabled = optional(bool, true)<br/> name = optional(string, "")<br/> description = optional(string, "Managed by Terraform.")<br/> })</pre> | `{}` | no | |
| 45 | +| <a name="input_shares"></a> [shares](#input\_shares) | (Optional) A list of resource shares via RAM (Resource Access Manager). | <pre>list(object({<br/> name = optional(string)<br/><br/> permissions = optional(set(string), ["AWSRAMDefaultPermissionCloudfrontVpcOrigin"])<br/><br/> external_principals_allowed = optional(bool, false)<br/> principals = optional(set(string), [])<br/><br/> tags = optional(map(string), {})<br/> }))</pre> | `[]` | no | |
| 46 | +| <a name="input_ssl_security_policy"></a> [ssl\_security\_policy](#input\_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 | |
| 47 | +| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) A map of tags to add to all resources. | `map(string)` | `{}` | no | |
| 48 | + |
| 49 | +## Outputs |
| 50 | + |
| 51 | +| Name | Description | |
| 52 | +|------|-------------| |
| 53 | +| <a name="output_arn"></a> [arn](#output\_arn) | The ARN of the CloudFront VPC Origin. | |
| 54 | +| <a name="output_endpoint"></a> [endpoint](#output\_endpoint) | The ARN of the CloudFront VPC Origin endpoint. | |
| 55 | +| <a name="output_etag"></a> [etag](#output\_etag) | The ETag of the CloudFront VPC Origin. | |
| 56 | +| <a name="output_http_port"></a> [http\_port](#output\_http\_port) | The HTTP port of the CloudFront VPC Origin. | |
| 57 | +| <a name="output_https_port"></a> [https\_port](#output\_https\_port) | The HTTPS port of the CloudFront VPC Origin. | |
| 58 | +| <a name="output_id"></a> [id](#output\_id) | The ID of the CloudFront VPC Origin. | |
| 59 | +| <a name="output_name"></a> [name](#output\_name) | The name of the CloudFront VPC Origin. | |
| 60 | +| <a name="output_protocol_policy"></a> [protocol\_policy](#output\_protocol\_policy) | The origin protocol policy applied to the CloudFront VPC Origin. | |
| 61 | +| <a name="output_resource_group"></a> [resource\_group](#output\_resource\_group) | The resource group created to manage resources in this module. | |
| 62 | +| <a name="output_sharing"></a> [sharing](#output\_sharing) | The configuration for sharing of the Cloudfront VPC Origin.<br/> `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`.<br/> `shares` - The list of resource shares via RAM (Resource Access Manager). | |
| 63 | +| <a name="output_ssl_security_policy"></a> [ssl\_security\_policy](#output\_ssl\_security\_policy) | The minimum SSL protocol that CloudFront uses with the origin. | |
| 64 | +<!-- END_TF_DOCS --> |
0 commit comments