Skip to content

Commit

Permalink
fix(DMVP-5400): Add response header policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Julieta Aghamyan committed Oct 4, 2024
1 parent acab12b commit 324852e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/cloudfront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module "cloudfront" {
| <a name="input_connection_attempts"></a> [connection\_attempts](#input\_connection\_attempts) | The number of times that CloudFront attempts to connect to the origin. | `number` | `3` | no |
| <a name="input_connection_timeout"></a> [connection\_timeout](#input\_connection\_timeout) | The number of seconds that CloudFront waits when trying to establish a connection to the origin. | `number` | `10` | no |
| <a name="input_create_lambda_security_headers"></a> [create\_lambda\_security\_headers](#input\_create\_lambda\_security\_headers) | Whether to create and attach a labda function to the distribution or not. | `bool` | `false` | no |
| <a name="input_create_response_headers_policy"></a> [create\_response\_headers\_policy](#input\_create\_response\_headers\_policy) | n/a | <pre>object({<br> enabled = optional(bool, false)<br> name = string<br> security_headers = object({<br> frame_options = optional(string)<br> })<br> })</pre> | <pre>{<br> "bucket": null,<br> "enable": false,<br> "security_headers": {}<br>}</pre> | no |
| <a name="input_create_response_headers_policy"></a> [create\_response\_headers\_policy](#input\_create\_response\_headers\_policy) | n/a | <pre>object({<br> enabled = optional(bool, false)<br> name = optional(string, "custome_response_headers")<br> security_headers = object({<br> frame_options = optional(string)<br> })<br> })</pre> | <pre>{<br> "enable": false,<br> "name": "custome_response_headers",<br> "security_headers": {}<br>}</pre> | no |
| <a name="input_custom_origin_config"></a> [custom\_origin\_config](#input\_custom\_origin\_config) | n/a | `map` | <pre>{<br> "http_port": 80,<br> "https_port": 443,<br> "origin_keepalive_timeout": 5,<br> "origin_protocol_policy": "http-only",<br> "origin_read_timeout": 30,<br> "origin_ssl_protocols": [<br> "TLSv1",<br> "TLSv1.1",<br> "TLSv1.2"<br> ]<br>}</pre> | no |
| <a name="input_default_allowed_methods"></a> [default\_allowed\_methods](#input\_default\_allowed\_methods) | Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. | `list(string)` | <pre>[<br> "DELETE",<br> "GET",<br> "HEAD",<br> "OPTIONS",<br> "PATCH",<br> "POST",<br> "PUT"<br>]</pre> | no |
| <a name="input_default_cached_methods"></a> [default\_cached\_methods](#input\_default\_cached\_methods) | Controls whether CloudFront caches the response to requests using the specified HTTP methods. | `list(string)` | <pre>[<br> "GET",<br> "HEAD"<br>]</pre> | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/cloudfront/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@ variable "logging_config" {
variable "create_response_headers_policy" {
type = object({
enabled = optional(bool, false)
name = string
name = optional(string, "custome_response_headers")
security_headers = object({
frame_options = optional(string)
})
})
default = {
enable = false
bucket = null
name = "custome_response_headers"
security_headers = {}
}
}

0 comments on commit 324852e

Please sign in to comment.