Given a Cloudfront Distribution I created, How do I check associated lambda@edge functions? From what I understand the empty "Functions" Section in Cloudfront console is only for 'Cloudfront functions'.
I deployed the Distribution with cloudformation containing a section in Properties=>DistributionConfig=>DefaultCacheBehavior
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref ViewerRequestFunctionVersion
- EventType: 'origin-response'
LambdaFunctionARN: !Ref OriginResponseFunctionVersion
The lambdas were successfully created and I can see them in aws console.
More Background:
I followed this tutorial to create a cloudformation distribution with correspondingly associated lambda@edge viewer-request and origin-response functions. Since the tutorial is a bit outdated, I had to use a newer node runtime and change a few things, but I finally got the cloudformation stack to deploy.
Now requests that just request an image without parameter as is work fine.
As soon as I use the url parameter to resize - i.e. d=100x100, cloudfront gives me a 502 error.
I don't see logs in cloudwatch and I dont know how to debug the lambdas, so for starterst I would simply like to verify that the lambdas are even associated properly (and executed?).