We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c890be2 commit 06ac925Copy full SHA for 06ac925
infrastructure/modules/cloudfront/main.tf
@@ -82,6 +82,14 @@ resource "aws_cloudfront_distribution" "this" {
82
ssl_support_method = var.acm_certificate_arn != null ? var.ssl_support_method : null
83
minimum_protocol_version = var.acm_certificate_arn != null ? var.minimum_protocol_version : null
84
}
85
+ dynamic "custom_error_response" {
86
+ for_each = var.distribution_type == "s3" ? [1] : []
87
+ content {
88
+ error_code = 403
89
+ response_code = 200
90
+ response_page_path = "/"
91
+ }
92
93
94
tags = var.tags
95
0 commit comments