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 7, 2024
1 parent f08dd4b commit 4fb3382
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/cloudfront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ module "cloudfront" {
| <a name="input_acm_cert_arn"></a> [acm\_cert\_arn](#input\_acm\_cert\_arn) | ACM certificate arn. | `string` | `""` | no |
| <a name="input_cache_policy_id"></a> [cache\_policy\_id](#input\_cache\_policy\_id) | Unique identifier of the cache policy that is attached to the cache behavior | `string` | `""` | no |
| <a name="input_cloudfront_default_certificate"></a> [cloudfront\_default\_certificate](#input\_cloudfront\_default\_certificate) | true if you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name for your distribution. | `bool` | `true` | no |
| <a name="input_comment"></a> [comment](#input\_comment) | Comment for CloudFront | `string` | `""` | no |
| <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 |
Expand Down
1 change: 1 addition & 0 deletions modules/cloudfront/distribution.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ locals {

resource "aws_cloudfront_distribution" "main" {
aliases = var.domain_names
comment = var.comment
enabled = var.enabled
is_ipv6_enabled = var.is_ipv6_enabled
price_class = var.price_class
Expand Down
8 changes: 8 additions & 0 deletions modules/cloudfront/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ variable "domain_names" {
description = "The list of domain names (aliases) for which cloudfront will used for"
type = list(string)
}

variable "default_target_origin_id" {
description = "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior."
type = string
}

variable "comment" {
description = "Comment for CloudFront"
type = string
default = ""
}

variable "origins" {
description = "Targets, types and custom_origin_config block are needed to create new origins."
type = list(any)
Expand Down

0 comments on commit 4fb3382

Please sign in to comment.