- 최신
- 최다 투표
- 가장 많은 댓글
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()
I am trying to get the data being returned by Lambda B in Lambda A.