Launch Lambda function from Step function in different region

0

Is it possible to launch AWS Lambda in eu-west-1 region from Step function in af-south-1.

I am getting ResourceNotFound exception, but I am not sure I am missing some permissions, or it is not possible at all.

已提問 3 個月前檢視次數 345 次
2 個答案
1
已接受的答案

You're getting ResourceNotFound because Step Function is calling the Lambda endpoint in af-south-1 to invoke the Lambda function; but it isn't there (it's in `eu-west-1).

One way to solve this is to have a Lambda function in af-south-1 that is called by the Step Function and the only job of that Lambda function is to invoke the Lambda function in eu-west-1. However, having a Lambda function synchronously call another Lambda function is considered an anti-pattern: https://docs.aws.amazon.com/lambda/latest/operatorguide/functions-calling-functions.html

profile pictureAWS
專家
已回答 3 個月前
profile picture
專家
已審閱 2 個月前
-1

Hi,

Yes, it is possible.

Have a detailled read of this blog post to have all the proper setup for such a use case: https://aws.amazon.com/blogs/compute/introducing-cross-account-access-capabilities-for-aws-step-functions/

Best,

Didier

profile pictureAWS
專家
已回答 3 個月前
  • Hi Didier, the blog is referring to cross-account calling of Step Functions. But I am looking into cross-region call from Step Function to Lambda itself.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南