Skip to content

Commit af52d1f

Browse files
author
nikhilk145
committed
Merge pull request #50 from sourcefuse/feature/option-to-hanlde-r53
Fix for issue #49
1 parent 2f4de2a commit af52d1f

File tree

1 file changed

+2
-2
lines changed
  • docs/arc-iac-docs/modules/terraform-aws-arc-cloudfront

1 file changed

+2
-2
lines changed

docs/arc-iac-docs/modules/terraform-aws-arc-cloudfront/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module "cloudfront" {
222222

223223
| Name | Description | Type | Default | Required |
224224
|------|-------------|------|---------|:--------:|
225-
| <a name="input_acm_details"></a> [acm\_details](#input\_acm\_details) | Details required for creating certificate<br/>eg. {<br/> domain\_name = "test.com",<br/> subject\_alternative\_names = ["www.test.com"]<br/> } | <pre>object({<br/> domain_name = string,<br/> subject_alternative_names = list(string),<br/> })</pre> | <pre>{<br/> "domain_name": "",<br/> "subject_alternative_names": []<br/>}</pre> | no |
225+
| <a name="input_acm_details"></a> [acm\_details](#input\_acm\_details) | Details required for creating certificate<br/>eg. {<br/> domain\_name = "test.com"<br/> subject\_alternative\_names = ["www.test.com"]<br/> } | <pre>object({<br/> domain_name = optional(string, null)<br/> subject_alternative_names = optional(list(string), [])<br/> })</pre> | <pre>{<br/> "domain_name": null,<br/> "subject_alternative_names": []<br/>}</pre> | no |
226226
| <a name="input_aliases"></a> [aliases](#input\_aliases) | Fully qualified domain name for site being hosted | `list(string)` | n/a | yes |
227227
| <a name="input_cache_behaviors"></a> [cache\_behaviors](#input\_cache\_behaviors) | Set the cache behaviors for the distribution , Note:- You cannot use an origin request policy in a cache behavior without a cache policy. | <pre>list(object({<br/> origin_id = string // should be same as what is given in origins<br/> path_pattern = string<br/> allowed_methods = list(string)<br/> cached_methods = list(string)<br/> response_headers_policy_name = optional(string, null)<br/> use_aws_managed_response_headers_policy = optional(bool, false)<br/> function_association = optional(list(object({ // Specific event to trigger this function. Valid values: viewer-request or viewer-response.<br/> event_type = string,<br/> function_arn = string<br/> })))<br/> lambda_function_association = optional(list(object({ // A config block that triggers a lambda function with specific actions (maximum 4).<br/> event_type = string,<br/> lambda_arn = string,<br/> include_body = bool // When set to true it exposes the request body to the lambda function.<br/> })))<br/> use_aws_managed_cache_policy = bool,<br/> cache_policy_name = string, // It can be custom or aws managed policy name , if custom cache_policies variable key should match<br/> use_aws_managed_origin_request_policy = optional(bool),<br/> origin_request_policy_name = optional(string), // It can be custom or aws managed policy name , if custom origin_request_policies variable key should match<br/> compress = bool,<br/> viewer_protocol_policy = string<br/> }))</pre> | `[]` | no |
228228
| <a name="input_cache_policies"></a> [cache\_policies](#input\_cache\_policies) | Cache policies,<br/>eg. {<br/> "cache-policy-1" = {<br/> default\_ttl = 86400,<br/> max\_ttl = 31536000,<br/> min\_ttl = 0,<br/> cookies\_config = {<br/> cookie\_behavior = "none",<br/> items = []<br/> },<br/> headers\_config = {<br/> header\_behavior = "whitelist",<br/> items = ["Authorization", "Origin", "Accept", "Access-Control-Request-Method", "Access-Control-Request-Headers", "Referer"]<br/> },<br/> query\_string\_behavior = {<br/> header\_behavior = "none",<br/> items = []<br/> },<br/> query\_strings\_config = {<br/> query\_string\_behavior = "none",<br/> items = []<br/> }<br/>} } | <pre>map(object(<br/> {<br/> default_ttl = number,<br/> max_ttl = number,<br/> min_ttl = number,<br/> cookies_config = object({<br/> cookie_behavior = string<br/> items = list(string)<br/> }),<br/> headers_config = object({<br/> header_behavior = string<br/> items = list(string)<br/> }),<br/> query_strings_config = object({<br/> query_string_behavior = string<br/> items = list(string)<br/> })<br/> }<br/> ))</pre> | `{}` | no |
@@ -242,7 +242,7 @@ module "cloudfront" {
242242
| <a name="input_response_headers_policy"></a> [response\_headers\_policy](#input\_response\_headers\_policy) | Header policies,<br/>eg. {<br/> "response-header-policy-1" = {<br/> default\_ttl = 86400,<br/> max\_ttl = 31536000,<br/> min\_ttl = 0,<br/> cookies\_config = {<br/> cookie\_behavior = "none",<br/> items = []<br/> },<br/> headers\_config = {<br/> header\_behavior = "whitelist",<br/> items = ["Authorization", "Origin", "Accept", "Access-Control-Request-Method", "Access-Control-Request-Headers", "Referer"]<br/> },<br/> query\_string\_behavior = {<br/> header\_behavior = "none",<br/> items = []<br/> },<br/> query\_strings\_config = {<br/> query\_string\_behavior = "none",<br/> items = []<br/> }<br/>} } | <pre>map(object(<br/> {<br/> name = string<br/> comment = optional(string, "")<br/> cors_config = optional(object({<br/> access_control_allow_credentials = bool<br/> access_control_allow_headers = object({<br/> items = list(string)<br/> })<br/> access_control_allow_methods = object({<br/> items = list(string)<br/> })<br/> access_control_allow_origins = object({<br/> items = list(string)<br/> })<br/> access_control_expose_headers = object({<br/> items = list(string)<br/> })<br/> access_control_max_age_sec = number<br/> origin_override = bool<br/> })),<br/> server_timing_headers_config = optional(object({<br/> enabled = bool<br/> sampling_rate = number<br/> }),<br/> {<br/> enabled = false<br/> sampling_rate = 0<br/> }),<br/><br/> remove_headers_config = optional(object({<br/> items = list(string)<br/> }))<br/> custom_headers_config = optional(object({<br/> items = list(object({<br/> header = string<br/> override = bool<br/> value = string<br/> })) }), null)<br/><br/> security_headers_config = optional(object({<br/> content_type_options = object({<br/> override = bool<br/> })<br/> frame_options = object({<br/> frame_option = string<br/> override = bool<br/> })<br/> referrer_policy = object({<br/> referrer_policy = string<br/> override = bool<br/> })<br/> xss_protection = object({<br/> mode_block = bool<br/> protection = bool<br/> override = bool<br/> report_uri = string<br/> })<br/> strict_transport_security = object({<br/> access_control_max_age_sec = string<br/> include_subdomains = bool<br/> preload = bool<br/> override = bool<br/> })<br/> content_security_policy = object({<br/> content_security_policy = string<br/> override = bool<br/> })<br/><br/> }))<br/> }<br/> ))</pre> | `{}` | no |
243243
| <a name="input_retain_on_delete"></a> [retain\_on\_delete](#input\_retain\_on\_delete) | Disables the distribution instead of deleting it when destroying the resource through Terraform. If this is set, the distribution needs to be deleted manually afterwards. | `bool` | `false` | no |
244244
| <a name="input_route53_record_ttl"></a> [route53\_record\_ttl](#input\_route53\_record\_ttl) | TTL for Route53 record | `string` | `60` | no |
245-
| <a name="input_route53_root_domain"></a> [route53\_root\_domain](#input\_route53\_root\_domain) | Domain to add to route 53 as alias to distribution | `string` | n/a | yes |
245+
| <a name="input_route53_root_domain"></a> [route53\_root\_domain](#input\_route53\_root\_domain) | Domain to add to route 53 as alias to distribution | `string` | `null` | no |
246246
| <a name="input_s3_kms_details"></a> [s3\_kms\_details](#input\_s3\_kms\_details) | KMS details for S3 encryption | <pre>object({<br/> s3_bucket_encryption_type = string, //Encryption for S3 bucket , options : SSE-S3 - AES256 , SSE-KMS - aws:kms<br/> kms_key_administrators = optional(list(string)), // "Environment where deploying,List of AWS arns that will have permissions to use kms key"<br/> kms_key_users = optional(list(string)), // "Environment where deploying,List of AWS arns that will have permissions to use kms key"<br/> kms_key_arn = optional(string) // In case if we need to use CMK created else where, set as null if not used<br/> })</pre> | <pre>{<br/> "kms_key_administrators": [],<br/> "kms_key_arn": null,<br/> "kms_key_users": [],<br/> "s3_bucket_encryption_type": "SSE-S3"<br/>}</pre> | no |
247247
| <a name="input_tags"></a> [tags](#input\_tags) | Tags for AWS resources | `map(string)` | `{}` | no |
248248
| <a name="input_viewer_certificate"></a> [viewer\_certificate](#input\_viewer\_certificate) | The SSL configuration for this distribution | <pre>object({<br/> cloudfront_default_certificate = bool,<br/> minimum_protocol_version = string,<br/> ssl_support_method = string<br/> })</pre> | <pre>{<br/> "cloudfront_default_certificate": false,<br/> "minimum_protocol_version": "TLSv1.2_2018",<br/> "ssl_support_method": "sni-only"<br/>}</pre> | no |

0 commit comments

Comments
 (0)