I am using lambda@edge to redirect my sites with cloudfront.
I have attached my versioned lambda arn to my cloud front cache behavior to all 4 events it has.
when i hit my cloudfront endpoint it says
502 ERROR
The request could not be satisfied.
The Lambda function returned invalid json: The json output must be an object type.
when i check my lambda logs / invocation metrics i dont see any hits at all .
what may be the reason behind this ?
i tried my best to find the fix why my lambda is not getting triggered ??
502 Bad Gateway
error. Please show your code. – Michael - sqlbot