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 0f78f1f commit 4cc1b86Copy full SHA for 4cc1b86
aws-cloudfront.tf
@@ -37,7 +37,7 @@ resource "aws_cloudfront_distribution" "site" {
37
dynamic "custom_error_response" {
38
for_each = var.enable_spa_error_handling ? toset(["403", "404"]) : []
39
content {
40
- error_code = each.value
+ error_code = custom_error_response.value
41
response_code = 200
42
response_page_path = format("/%s", coalesce(var.default_root_object, "index.html"))
43
}
0 commit comments