AWS Lambda not working along with the gm module

前端 未结 5 1265
刺人心
刺人心 2020-12-19 03:23

I am using AWS Lambda to resize my image in s3 bucket into different size variants using node js when an image is put into the s3 bucket.

It was working till yesterd

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 04:15

    According to the AWS documentation: http://docs.aws.amazon.com/pt_br/lambda/latest/dg/current-supported-versions.html AWS Lambda still supporting imagemagick.

    However, I had the same problem a few days ago, with a project that was working flawless. As the error message issues it seems to be a permission conflict while trying to read the S3 bucket rather than an imagemagick problem.

    You can try changing the Bucket permissions Make a bucket public in Amazon S3.

    Alternatively as a workaround you can always zip the image files with your lambda file and avoid such permissions conflics.

提交回复
热议问题