2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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.
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 7 meses
- OFICIAL DE AWSActualizada hace un año
From the vague use case description, Event Bridge or Step Functions would appear to meet his needs.