import boto3 import json client = boto3.client('lambda', region_name='us-east-1') # unzip an archive def lambda_unzip(archive, destination): pl = {"source": archive, "destination": destination} response = client.invoke(FunctionName='unzipper', InvocationType='RequestResponse', Payload=json.dumps(pl)) print(response['Payload'].read()) archive = 's3://bucket-name/path/to/archive.zip' lambda_unzip(archive, 's3://bucket-name/path/to/destination/')