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

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ