def lambda_handler()

in resources/src/get_ssh_key_from_ssm/index.py [0:0]


def lambda_handler(event, context):
    """ Get SSM parameter and return it in HTTP-ready response """
    session = boto3.session.Session()

    return {
        "statusCode": 200,
        "body": get_ssh_pem('us-east-1', session),
        "headers": {"content-type": "text/plain"}
    }