Skip to content

Instantly share code, notes, and snippets.

@gingerlime
Created March 30, 2016 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gingerlime/d6d2e89d10e9d7a0b056e84000f30bce to your computer and use it in GitHub Desktop.
Save gingerlime/d6d2e89d10e9d7a0b056e84000f30bce to your computer and use it in GitHub Desktop.
import boto3
import json
lambda_client = boto3.client('lambda')
def invoke(event, context):
lambda_client.invoke(
FunctionName='arn:aws:lambda:us-east-1:...:function:...',
InvocationType='Event',
Payload=json.dumps(event)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment