2 回答
- 最新
- 投票最多
- 评论最多
2
Destinations will trigger only on async invocation. The TEST button on the console invokes the function synchronously. You'll need to test via the aws cli to see it in action.
Here's a command to test it
aws lambda invoke --function-name lambdaA --cli-binary-format raw-in-base64-out --invocation-type Event --payload '{"my": "event"}' result.json
This is also detailed on the blog
The other option is async invocation using Amazon S3, Amazon SNS, Amazon EventBridge etc.
1
You should invoke lambda(A) asynchronously.
e.g. Trigger lambda(A) by EventBridge event.
https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
Regards.
已回答 2 年前
相关内容
- AWS 官方已更新 2 年前
From the vague use case description, Event Bridge or Step Functions would appear to meet his needs.