You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected result: Execution result status succeeded
Actual result: Execution result status failed
Output: The CloudFront function associated with the CloudFront distribution is invalid or could not run. TypeError: cannot get property "value" of undefined
Works in Practice
Oddly enough, the host value is evaluated correctly when CloudFront executes the function. Just seems to be an issue in the Test sandbox.
The text was updated successfully, but these errors were encountered:
Doubt this is actually the correct place to report; maybe the repo owner could send this up the chain?
When using the property for the host header value in a CloudeFront Function and then testing with the "Test" tab, the test fails with the error:
Property used:
event.request.headers.host.value
The example event in the AWS documentation for CloudFront Event Structure > Example Event shows this is a valid path and is also used in the redirect-based-on-country sample.
Reproducible Example
Create a new function with the following basic structure:
Expected result:
Execution result status succeeded
Actual result:
Execution result status failed
Output:
The CloudFront function associated with the CloudFront distribution is invalid or could not run. TypeError: cannot get property "value" of undefined
Works in Practice
Oddly enough, the host value is evaluated correctly when CloudFront executes the function. Just seems to be an issue in the Test sandbox.
The text was updated successfully, but these errors were encountered: