Skip to content

Commit

Permalink
Merge pull request #11 from clouddrove/issue_68
Browse files Browse the repository at this point in the history
Issue 68
  • Loading branch information
Nikita Dugar committed Jul 20, 2022
2 parents 2654986 + 97e0ead commit db40296
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
6 changes: 4 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ resource "aws_cloudfront_distribution" "bucket" {
}

custom_error_response {
error_code = var.error_code
response_page_path = var.response_page_path
error_caching_min_ttl = var.error_caching_min_ttl
error_code = var.error_code
response_code = var.response_code
response_page_path = var.response_page_path
}

tags = module.labels.tags
Expand Down
19 changes: 17 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,14 @@ variable "forward_cookies_whitelisted_names" {

variable "error_code" {
type = string
default = "404"
default = "403"
description = "List of forwarded cookie names."
}


variable "response_page_path" {
type = string
default = null
default = "/index.html"
description = "The path of the custom error page (for example, /custom_404.html)."
}

Expand Down Expand Up @@ -320,4 +321,18 @@ variable "cdn_enabled" {
type = bool
default = true
description = "Select Enabled if you want to created CloudFront."
}


variable "response_code" {
type = string
default = "404"
description = "page not found code"
}


variable "error_caching_min_ttl" {
type = string
default = "10"
description = "the value of errro caching min ttl"
}

0 comments on commit db40296

Please sign in to comment.