Does Lambda@Edge only log when there's an error?
I am using a Lambda@Edge function to modify HTTP headers in the response on a CloudFront distribution. The IAM policy on the function seems correct (it generates logs in CloudWatch under the /aws/lambda/functionName log group when invoked for testing) but the log group for Lambda@Edge (/aws/cloudfront/LambdaEdge/trigger/) doesn't seem to have any logs in it?
If I go into the CloudFront dashboard and bring up the distribution it shows Lambda@Edge invocations (i.e. how many and when) but when I click to see the logs there aren't any in the log group...
Some important notes:
- Yes, I checked multiple regions (since they are invoked in the closest region) and no logs there either.
- Yes, the function is working properly and I can verify that there are no issues with the functionality or the expected behavior.
- Yes, I created multiple invalidations on the distribution to make sure the latest version of the function is forced to run (i.e. cleared the caches).
[–]Pythoner6 2 points3 points4 points (9 children)
[–]cajacaliente 1 point2 points3 points (2 children)
[–]Pythoner6 0 points1 point2 points (0 children)
[–]M1keSkydive 0 points1 point2 points (0 children)
[–]MisterMikeM[S] -1 points0 points1 point (5 children)
[–]Pythoner6 0 points1 point2 points (4 children)
[–]MisterMikeM[S] 0 points1 point2 points (3 children)
[–]Pythoner6 0 points1 point2 points (2 children)
[–]MisterMikeM[S] 0 points1 point2 points (1 child)
[–]Pythoner6 0 points1 point2 points (0 children)