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
전문가
검토됨 일 년 전

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

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

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

관련 콘텐츠