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