lambda call python


PHOTO EMBED

Thu Feb 18 2021 14:45:07 GMT+0000 (UTC)

Saved by @dsantelices #python

def invoke_lambda_calculate_accounts(client_id):
    lambda_client = boto3.client('lambda')
    payload = {
        'client_id': client_id
    }
    response = lambda_client.invoke(
        FunctionName='arn:aws:lambda:sa-east-1:622978847361:function:calculate-accounts',
        InvocationType='RequestResponse',
        Payload=json.dumps(payload)
    )
    return response
content_copyCOPY

cdk / api / Mikopo