how to get return response from AWS Lambda function

后端 未结 2 1014
陌清茗
陌清茗 2020-12-13 00:16

I have a simple lambda function that returns a dict response and another lambda function invokes that function and prints the response.

lambda function A

2条回答
  •  执笔经年
    2020-12-13 01:11

    try: data = invoke_response['Payload'].read() read() because it is a StreamingBody object

    
    

    It is in the boto3 docs. You can find more details about this here: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html#actions

提交回复
热议问题