2 Answers
- Newest
- Most votes
- Most comments
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.
answered 3 years ago
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
From the vague use case description, Event Bridge or Step Functions would appear to meet his needs.