β Error: Invalid index
β
β on .terraform/modules/cdn/main.tf line 252, in resource "aws_cloudfront_distribution" "this":
β 252: error_code = custom_error_response.value["error_code"]
β βββββββββββββββββ
β β custom_error_response.value is 86400
β
β This value does not have any indices.
β΅
β·
β Error: Invalid index
β
β on .terraform/modules/cdn/main.tf line 252, in resource "aws_cloudfront_distribution" "this":
β 252: error_code = custom_error_response.value["error_code"]
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β This value does not have any indices.
β΅
β·
β Error: Invalid index
β
β on .terraform/modules/cdn/main.tf line 252, in resource "aws_cloudfront_distribution" "this":
β 252: error_code = custom_error_response.value["error_code"]
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β This value does not have any indices.
β΅
β·
β Error: Invalid index
β
β on .terraform/modules/cdn/main.tf line 252, in resource "aws_cloudfront_distribution" "this":
β 252: error_code = custom_error_response.value["error_code"]
β βββββββββββββββββ
β β custom_error_response.value is "wtf.html"
β
β This value does not have any indices.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 254, in resource "aws_cloudfront_distribution" "this":
β 254: response_code = lookup(custom_error_response.value, "response_code", null)
β βββββββββββββββββ
β β custom_error_response.value is 86400
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 254, in resource "aws_cloudfront_distribution" "this":
β 254: response_code = lookup(custom_error_response.value, "response_code", null)
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 254, in resource "aws_cloudfront_distribution" "this":
β 254: response_code = lookup(custom_error_response.value, "response_code", null)
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 254, in resource "aws_cloudfront_distribution" "this":
β 254: response_code = lookup(custom_error_response.value, "response_code", null)
β βββββββββββββββββ
β β custom_error_response.value is "wtf.html"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 255, in resource "aws_cloudfront_distribution" "this":
β 255: response_page_path = lookup(custom_error_response.value, "response_page_path", null)
β βββββββββββββββββ
β β custom_error_response.value is 86400
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 255, in resource "aws_cloudfront_distribution" "this":
β 255: response_page_path = lookup(custom_error_response.value, "response_page_path", null)
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 255, in resource "aws_cloudfront_distribution" "this":
β 255: response_page_path = lookup(custom_error_response.value, "response_page_path", null)
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 255, in resource "aws_cloudfront_distribution" "this":
β 255: response_page_path = lookup(custom_error_response.value, "response_page_path", null)
β βββββββββββββββββ
β β custom_error_response.value is "wtf.html"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 256, in resource "aws_cloudfront_distribution" "this":
β 256: error_caching_min_ttl = lookup(custom_error_response.value, "error_caching_min_ttl", null)
β βββββββββββββββββ
β β custom_error_response.value is 86400
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 256, in resource "aws_cloudfront_distribution" "this":
β 256: error_caching_min_ttl = lookup(custom_error_response.value, "error_caching_min_ttl", null)
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 256, in resource "aws_cloudfront_distribution" "this":
β 256: error_caching_min_ttl = lookup(custom_error_response.value, "error_caching_min_ttl", null)
β βββββββββββββββββ
β β custom_error_response.value is "404"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
β΅
β·
β Error: Invalid function argument
β
β on .terraform/modules/cdn/main.tf line 256, in resource "aws_cloudfront_distribution" "this":
β 256: error_caching_min_ttl = lookup(custom_error_response.value, "error_caching_min_ttl", null)
β βββββββββββββββββ
β β custom_error_response.value is "wtf.html"
β
β Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.