Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

AWS lambda , serverless Image Handler Not Working, fit-in not working

Trying to resize an image on the fly by using AWS lambda serverless image Handler, CloudFront.

Actually, I want to get this feature by using CloudFormation. I already have a s3 bucket and I want to set that bucket for CloudFront I can't get this thing to work.

I have found a template for serverless Image Handler on cloud formation to create a stack by using that template when the stack was created then I have seen new bucket created with I AM user which I do not want.

I want that create a stack with existing S3 Bucket. After stack created I see that when I use >>> { /fit-in/230x230/ getting error like NoSuchKey The specified key does not exist. not work with this URL:

https://{cloudFrontUrl}/fit-in/230x230/app/gold-pack-osclass-pack.jpg

and work with this URL:

https://{cloudFrontUrl}/app/gold-pack-osclass-pack.jpg.

this template I have used for creating a stack on cloud formation from this https://s3.amazonaws.com/solutions-reference/serverless-image-handler/latest/serverless-image-handler.pdf on page No 7 and choose the download the template.

Comments