Closed t6inGtHb closed 1 year ago
Hello!
Thank you! I have actually successfully got the image optimization working yesterday, and the issue is indeed the mismatch in the image path. There isn't a folder called "images" -- I thought it was a pattern for image optimization service. Removing the images folder works for me. But to understand it better, how do I collect the Lambda logs? Is it something inside "Developer Tools"?
Ah cool, this is what I suspected.
For the logs, go to Lambda page in the AWS console, select the region where you deployed the cdk, and then click on monitoring then view logs in CloudWatch Logs.
cdk deploy -c S3_IMAGE_BUCKET_NAME='tina-test-image-trans-cloudfront-1'
, I'm getting an "error downloading original image" when accessing transformed URL: https://d171s5ttralwpv.cloudfront.net/images/iphone.jpg?format=auto&width=300 Heretina-test-image-trans-cloudfront-1
is my own s3 bucket with an image iphone.jpg in it. The output ofcdk deploy -c S3_IMAGE_BUCKET_NAME='tina-test-image-trans-cloudfront-1'
is green and it displays the ImageDeliveryDomain and OriginalImagesS3Bucket in the outputs. Is there anything wrong? Should I try to runcdk destroy
first to stop the sample s3 bucket before switching to my own s3 bucket?