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年前
From the vague use case description, Event Bridge or Step Functions would appear to meet his needs.