- Newest
- Most votes
- Most comments
What you are trying to do is to "tightly couple" two lambda functions together.
I am not sure what business requirements you have, but, in general, this could be called an "anti-pattern". The approach to use with "modern applications" is to use "loose coupling". https://docs.aws.amazon.com/wellarchitected/latest/framework/a-workload-architecture.html
For example, you might want to send messages between Lambda functions using SNS (publish/subscribe) or SQS (message queues).
On the other hand, if you are trying to put together some over-arching workflow that controls the execution of multiple business functions, then have a look at Step Functions as a way of orchestrating multiple actions: https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html
Hope this helps.
The response is returned in the Payload field. As you can see, the response type is botocore.response.StreamingBody. You should call the read()
method on the Payload to get the content, e.g., body = Response['Payload'].read()
Relevant content
- asked 3 years ago
- Accepted Answerasked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
I am trying to get the data being returned by Lambda B in Lambda A.