Invoking a Lambda by Alias in SES Receipt Rule Action

0

Hello Community,

We have a SES rule for inbound mail that invokes a Lambda function.

This function plays an important role in our mail processing, which is why we opted to create an alias called LIVE which always points to a stable version of this function.

This way, we can make changes to the function and test it without affecting the mail processing in production.

Many places in AWS support Lambda invocation using a "qualified" ARN that includes the alias at the end, like so: arn:aws:lambda:eu-west-1:1234567890:function:SESForwarder:LIVE

For example, EventBridge rules allow this.

However, SES rules do not. In the web console, only the Lambda itself is selectable, but not its aliases.

When trying to set the alias using the AWS CLI, the following error is returned:

An error occurred (InvalidLambdaFunction) when calling the UpdateReceiptRule operation: Could not invoke
     Lambda function: arn:aws:lambda:eu-west-1:1234567890:function:SESForwarder:LIVE

Setting the Lambda ARN via the cli without the alias works without issue.

Is this an oversight or is there a technical reason why this is not possible?

Are there any workarounds, or could this functionality be enabled?

One workaround we can think of is to invoke an unqualified Lambda, which in turn invokes the qualified Lambda at the LIVE alias. But that just seems unnecessarily convoluted.

Thanks & Best Regards

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠