Skip to content

Commit 4cc1b86

Browse files
authored
🐛 fix: Remove the use of each.value in a dynamic block (#64)
1 parent 0f78f1f commit 4cc1b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-cloudfront.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ resource "aws_cloudfront_distribution" "site" {
3737
dynamic "custom_error_response" {
3838
for_each = var.enable_spa_error_handling ? toset(["403", "404"]) : []
3939
content {
40-
error_code = each.value
40+
error_code = custom_error_response.value
4141
response_code = 200
4242
response_page_path = format("/%s", coalesce(var.default_root_object, "index.html"))
4343
}

0 commit comments

Comments
 (0)