View a markdown version of this page

Enable debug logs - Dynamic Image Transformation for Amazon CloudFront

Enable debug logs

Problem: Need detailed logging information for troubleshooting image processing issues.

Solution: Debug logs are not enabled by default. To enable debug logging:

  1. Navigate to the AWS Lambda console

  2. Find the image processing Lambda function created by the solution

  3. Go to the Configuration tab

  4. Select Environment variables

  5. Add or modify the debug logging environment variables (exact variable names can be found in the CDK construct)

  6. Save the changes

Debug logs will provide detailed information about image processing operations, transformation steps, and error details to help with troubleshooting.