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
**NOTICE:** The Terraform documentation in this README is added by [terraform-docs](https://terraform-docs.io) running as a pre-commit hook, see the [.pre-commit-config.yaml](./.pre-commit-config.yaml) file.
33
33
34
+
## Example
35
+
36
+
An example of how this module is used can be found in [this Terraform configuration](https://github.com/hisapy/iporaitech.com/blob/main/terraform/main.tf).
|[aws_cloudfront_cache_policy.optimize](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/cloudfront_cache_policy)| data source |
62
-
|[aws_iam_policy_document.origin](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
|[aws_cloudfront_cache_policy.optimize](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/cloudfront_cache_policy)| data source |
67
+
|[aws_iam_policy_document.origin](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
63
68
64
69
## Inputs
65
70
66
-
| Name | Description | Type | Default | Required |
| <aname="input_acm_cert_arn"></a> [acm\_cert\_arn](#input\_acm\_cert\_arn)| ACM certificate to use if aliases are given. A CloudFront cert is used by default |`string`|`null`| no|
| <aname="input_function_association"></a> [function\_association](#input\_function\_association)| Forwarded to the aws\_cloudfront\_distribution resource |`any`|`null`| no|
72
-
| <aname="input_project"></a> [project](#input\_project)| Name of the project in lowercase without spaces, e.g., myproject |`string`| n/a |yes |
73
-
| <aname="input_route53_zone_id"></a> [route53\_zone\_id](#input\_route53\_zone\_id)| Hosted zone where the CDN aliases will be added to |`string`|`null`| no|
| <aname="input_acm_cert_arn"></a> [acm_cert_arn](#input_acm_cert_arn)| ACM certificate to use if aliases are given. A CloudFront cert is used by default |`string`|`null`| no |
74
+
| <aname="input_cdn_aliases"></a> [cdn_aliases](#input_cdn_aliases)| n/a |`list(string)`|`[]`| no |
| <aname="input_function_association"></a> [function_association](#input_function_association)| Forwarded to the aws_cloudfront_distribution resource |`any`|`null`| no |
77
+
| <aname="input_project"></a> [project](#input_project)| Name of the project in lowercase without spaces, e.g., myproject |`string`| n/a |yes|
78
+
| <aname="input_route53_zone_id"></a> [route53_zone_id](#input_route53_zone_id)| Hosted zone where the CDN aliases will be added to |`string`|`null`| no |
74
79
75
80
## Outputs
76
81
77
-
| Name | Description |
78
-
|------|-------------|
79
-
| <aname="output_cloudfront_dist_aliases"></a> [cloudfront\_dist\_aliases](#output\_cloudfront\_dist\_aliases)| CloudFront distribution aliases |
80
-
| <aname="output_cloudfront_dist_domain_name"></a> [cloudfront\_dist\_domain\_name](#output\_cloudfront\_dist\_domain\_name)| CloudFront distribution domain name |
81
-
| <aname="output_cloudfront_dist_id"></a> [cloudfront\_dist\_id](#output\_cloudfront\_dist\_id)| CloudFront distribution id |
82
-
| <aname="output_cloudfront_hosted_zone_id"></a> [cloudfront\_hosted\_zone\_id](#output\_cloudfront\_hosted\_zone\_id)| CloudFront distribution hosted\_zone\_id |
83
-
| <aname="output_s3_bucket_name"></a> [s3\_bucket\_name](#output\_s3\_bucket\_name)| Name of the S3 bucket used for the site |
| <aname="output_cloudfront_dist_aliases"></a> [cloudfront_dist_aliases](#output_cloudfront_dist_aliases)| CloudFront distribution aliases |
85
+
| <aname="output_cloudfront_dist_domain_name"></a> [cloudfront_dist_domain_name](#output_cloudfront_dist_domain_name)| CloudFront distribution domain name |
86
+
| <aname="output_cloudfront_dist_id"></a> [cloudfront_dist_id](#output_cloudfront_dist_id)| CloudFront distribution id |
87
+
| <aname="output_cloudfront_hosted_zone_id"></a> [cloudfront_hosted_zone_id](#output_cloudfront_hosted_zone_id)| CloudFront distribution hosted_zone_id |
88
+
| <aname="output_s3_bucket_name"></a> [s3_bucket_name](#output_s3_bucket_name)| Name of the S3 bucket used for the site |
0 commit comments