简体   繁体   中英

aws lambda with S3 trigger is not firing

I have a lambda function, which I deployed with a container image. The function itself is super simple, and it basically prints something stupid. When I'm testing it using the "test" tab in the console I get "Execution succeeded": 在此处输入图像描述

But when I add a s3 trigger - nothing happens when I upload a file to the S3 bucket!

This is the function overview:

在此处输入图像描述

This is the Execution role: 在此处输入图像描述

And this is the relevant policy in the "simple role" role, which should grant access to S3:

在此处输入图像描述

Here is the relevant bucket, when I upload file to it nothing happens in the Lambda!

在此处输入图像描述

Any help will be appreciated!

It is likely that the function did execute, but you cannot see its output.

The IAM policy associated with the AWS Lambda function should have, at minimum, the AWSLambdaBasicExecutionRole , which grants permission to upload logs to CloudWatch. This way, you can debug the function.

Without those permissions, the only indication that the function executed would be the 'Invocations' graph in the Monitoring section of the function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM