Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Invalid lambda function" when trying to configure SES email receiving rule

I created simple Lambda function for processing Amazon SES incoming email.

Function works, testing it with SES data works from Lambda editing panel.

When trying to create SES email receiving rule always getting identical errors:

Invalid Lambda function:
arn:aws:lambda:region:userid:function:functionname
(Request ID: requestid)

Tried to add roles for this lambda via command line:

aws lambda add-permission
--function-name arn:aws:lambda:region:userid:function:functionname
--statement-id=GiveSESPermissionToInvokeFunction
--principal=ses.amazonaws.com
--action=lambda:InvokeFunction
--source-account=userid
--region "region"

role is added successfully, but it's not helping.

like image 352
Cavin Avatar asked Jan 28 '23 15:01

Cavin


1 Answers

The Lambda function needs to be in the same AWS region as you are configuring the SES rule in.

like image 71
LC1983 Avatar answered Apr 28 '23 12:04

LC1983