You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,7 @@ module "cdn" {
149
149
## Examples
150
150
151
151
-[Complete](https://github.com/terraform-aws-modules/terraform-aws-cloudfront/tree/master/examples/complete) - Complete example which creates AWS CloudFront distribution and integrates it with other [terraform-aws-modules](https://github.com/terraform-aws-modules) to create additional resources: S3 buckets, Lambda Functions, CloudFront Functions, VPC Origins, ACM Certificate, Route53 Records.
152
+
-[mTLS](https://github.com/terraform-aws-modules/terraform-aws-cloudfront/tree/master/examples/mtls) - mTLS example which creates AWS CloudFront distribution with viewer mTLS support.
| <aname="input_anycast_ip_list_id"></a> [anycast\_ip\_list\_id](#input\_anycast\_ip\_list\_id)| ID of the Anycast static IP list that is associated with the distribution |`string`|`null`| no |
194
196
| <aname="input_cloudfront_functions"></a> [cloudfront\_functions](#input\_cloudfront\_functions)| Map of CloudFront Function configurations. Key is used as default function name if 'name' not specified | <pre>map(object({<br/> name = optional(string)<br/> runtime = optional(string, "cloudfront-js-2.0")<br/> comment = optional(string)<br/> publish = optional(bool)<br/> code = string<br/> key_value_store_associations = optional(list(string))<br/> }))</pre> |`null`| no |
195
197
| <aname="input_comment"></a> [comment](#input\_comment)| Any comments you want to include about the distribution |`string`|`null`| no |
198
+
| <aname="input_connection_function_association_id"></a> [connection\_function\_association\_id](#input\_connection\_function\_association\_id)| Identifier of the connection function to associate with the distribution |`string`|`null`| no |
199
+
| <aname="input_connection_function_code"></a> [connection\_function\_code](#input\_connection\_function\_code)| The code of the CloudFront connection function |`string`|`null`| no |
200
+
| <aname="input_connection_function_config"></a> [connection\_function\_config](#input\_connection\_function\_config)| Configuration block for the CloudFront connection function | <pre>object({<br/> comment = string<br/> runtime = string<br/> key_value_store_association = optional(object({<br/> key_value_store_arn = string<br/> }))<br/> })</pre> |`null`| no |
201
+
| <aname="input_connection_function_name"></a> [connection\_function\_name](#input\_connection\_function\_name)| The name of the CloudFront connection function |`string`|`null`| no |
202
+
| <aname="input_connection_function_publish"></a> [connection\_function\_publish](#input\_connection\_function\_publish)| Whether to publish the function to the LIVE stage after creation or update. Defaults to false |`bool`|`null`| no |
196
203
| <aname="input_continuous_deployment_policy_id"></a> [continuous\_deployment\_policy\_id](#input\_continuous\_deployment\_policy\_id)| Identifier of a continuous deployment policy. This argument should only be set on a production distribution |`string`|`null`| no |
197
204
| <aname="input_create"></a> [create](#input\_create)| Controls if resources should be created (affects nearly all resources) |`bool`|`true`| no |
205
+
| <aname="input_create_connection_function"></a> [create\_connection\_function](#input\_create\_connection\_function)| Controls whether to create a CloudFront connection function |`bool`|`false`| no |
198
206
| <aname="input_create_monitoring_subscription"></a> [create\_monitoring\_subscription](#input\_create\_monitoring\_subscription)| If enabled, the resource for monitoring subscription will created |`bool`|`false`| no |
199
207
| <aname="input_custom_error_response"></a> [custom\_error\_response](#input\_custom\_error\_response)| One or more custom error response elements | <pre>list(object({<br/> error_caching_min_ttl = optional(number)<br/> error_code = number<br/> response_code = optional(number)<br/> response_page_path = optional(string)<br/> }))</pre> |`null`| no |
| <aname="input_wait_for_deployment"></a> [wait\_for\_deployment](#input\_wait\_for\_deployment)| If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this to false will skip the process |`bool`|`null`| no |
222
231
| <aname="input_web_acl_id"></a> [web\_acl\_id](#input\_web\_acl\_id)| If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have waf:GetWebACL permissions assigned. If using WAFv2, provide the ARN of the web ACL |`string`|`null`| no |
@@ -240,6 +249,11 @@ No modules.
240
249
| <aname="output_cloudfront_origin_access_controls"></a> [cloudfront\_origin\_access\_controls](#output\_cloudfront\_origin\_access\_controls)| The origin access controls created |
241
250
| <aname="output_cloudfront_response_headers_policies"></a> [cloudfront\_response\_headers\_policies](#output\_cloudfront\_response\_headers\_policies)| The response headers policies created |
242
251
| <aname="output_cloudfront_vpc_origins"></a> [cloudfront\_vpc\_origins](#output\_cloudfront\_vpc\_origins)| The IDS of the VPC origin created |
252
+
| <aname="output_connection_function_arn"></a> [connection\_function\_arn](#output\_connection\_function\_arn)| ARN of the connection function |
253
+
| <aname="output_connection_function_etag"></a> [connection\_function\_etag](#output\_connection\_function\_etag)| ETag of the connection function |
254
+
| <aname="output_connection_function_id"></a> [connection\_function\_id](#output\_connection\_function\_id)| ID of the connection function |
255
+
| <aname="output_connection_function_live_stage_etag"></a> [connection\_function\_live\_stage\_etag](#output\_connection\_function\_live\_stage\_etag)| ETag of the function's LIVE stage. Will be empty if the function has not been published |
256
+
| <aname="output_connection_function_status"></a> [connection\_function\_status](#output\_connection\_function\_status)| Status of the connection function |
|[aws_iam_policy_document.s3_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
44
+
|[aws_route53_zone.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone)| data source |
45
+
46
+
## Inputs
47
+
48
+
| Name | Description | Type | Default | Required |
| <aname="input_domain"></a> [domain](#input\_domain)| The domain name to use when deploying the CloudFront distribution |`string`|`"terraform-aws-modules.modules.tf"`| no |
51
+
52
+
## Outputs
53
+
54
+
| Name | Description |
55
+
|------|-------------|
56
+
| <aname="output_ca_certificate_pem"></a> [ca\_certificate\_pem](#output\_ca\_certificate\_pem)| The CA certificate in PEM format |
57
+
| <aname="output_client_certificate_pem"></a> [client\_certificate\_pem](#output\_client\_certificate\_pem)| The client certificate in PEM format |
58
+
| <aname="output_client_private_key_pem"></a> [client\_private\_key\_pem](#output\_client\_private\_key\_pem)| The client private key in PEM format |
59
+
| <aname="output_cloudfront_distribution_domain"></a> [cloudfront\_distribution\_domain](#output\_cloudfront\_distribution\_domain)| The domain name of the CloudFront distribution |
60
+
| <aname="output_cloudfront_distribution_id"></a> [cloudfront\_distribution\_id](#output\_cloudfront\_distribution\_id)| The ID of the CloudFront distribution |
61
+
| <aname="output_connection_function_arn"></a> [connection\_function\_arn](#output\_connection\_function\_arn)| ARN of the connection function |
62
+
| <aname="output_connection_function_etag"></a> [connection\_function\_etag](#output\_connection\_function\_etag)| ETag of the connection function |
63
+
| <aname="output_connection_function_id"></a> [connection\_function\_id](#output\_connection\_function\_id)| ID of the connection function |
64
+
| <aname="output_connection_function_live_stage_etag"></a> [connection\_function\_live\_stage\_etag](#output\_connection\_function\_live\_stage\_etag)| ETag of the function's LIVE stage. Will be empty if the function has not been published |
65
+
| <aname="output_connection_function_status"></a> [connection\_function\_status](#output\_connection\_function\_status)| Status of the connection function |
66
+
| <aname="output_trust_store_arn"></a> [trust\_store\_arn](#output\_trust\_store\_arn)| The ARN of the CloudFront trust store |
67
+
| <aname="output_trust_store_etag"></a> [trust\_store\_etag](#output\_trust\_store\_etag)| ETAG of the CloudFront trust store |
68
+
| <aname="output_trust_store_id"></a> [trust\_store\_id](#output\_trust\_store\_id)| The ID of the CloudFront trust store |
69
+
| <aname="output_trust_store_number_of_ca_certificates"></a> [trust\_store\_number\_of\_ca\_certificates](#output\_trust\_store\_number\_of\_ca\_certificates)| Number of CA certificates in the trust store |
0 commit comments