Lambda Alias with DynamoDB Streams

0

My customer is using Lambda alias to differentiate between STAGE and PRD and this is working fine. They also want to use DynamoDB streams to Lambda, but there doesn’t seem to an option to use a specific alias/version of the Lambda function with DynamoDB Streams. If this is possible, can someone point me in the right direction please? If not, any suggestions on workarounds?

已提問 8 年前檢視次數 548 次
1 個回答
1
已接受的答案

The DynamoDB dashboard currently doesn’t allow to select aliases for Lambda functions. However, you can do it from the Lambda dashboard in the web console by selecting the PROD/STAGE alias for the function first, then go to triggers.

As an alternative, you can use the CLI create-event-source-mapping function for Lambda. See: http://docs.aws.amazon.com/lambda/latest/dg/with-ddb-configure-ddb.html Caution: use the full Lambda function ARN followed by :PROD or :STAGE as function-name parameter, instead of the simple function name shown in the example.

AWS
已回答 8 年前
profile picture
專家
已審閱 1 年前

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

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

回答問題指南