Created
October 2, 2018 15:27
-
-
Save chloegrace94/79879baeba7c71fbfffe5f2cf5f546d4 to your computer and use it in GitHub Desktop.
Invoke a Lambda function using boto3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
client = boto3.client('lambda') | |
# Invoke Lambda using invocation type: 'Event' | |
response = client.invoke( | |
FunctionName='final_response_lambda', | |
InvocationType='Event', | |
LogType='None', | |
Payload= json.dumps(body), | |
) | |
logger.info("Lambda invoke: " + str(response)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment