Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Boto3 Lambda Trigger

07 Nov 2020 »
def trigger_lambda(payload_, client_):
    payloadStr = json.dumps(payload_)
    payloadBytesArr = bytes(payloadStr, encoding='utf-8')
    rs = c.invoke(
        FunctionName="<func name>",
        InvocationType="Event", #RequestResponse
        Payload=payloadBytesArr
    )