Guest User

Untitled

a guest
Apr 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import boto3
  2. import json
  3.  
  4. lambda_client = boto3.client('lambda')
  5. a=[1,2,3]
  6. x = {"list" : a}
  7. invoke_response = lambda_client.invoke(FunctionName="name_of_other_lambda",
  8. InvocationType='RequestResponse',
  9. Payload=json.dumps(x))
  10. print (invoke_response['Payload'].read())
Add Comment
Please, Sign In to add comment