def lambda_handler()

in scripts/clientvpnendpoint-customlambdaresource.py [0:0]


def lambda_handler(event, context):
  
  logger.info(event)
  
  installDepCommands = ['pip3 install pip awscli --upgrade --no-cache-dir --ignore-installed --target=/tmp/']
  runCommandSet(installDepCommands)
  
  if event['RequestType'] == 'Delete':
    delete_endpoint(event, context)
  elif event['RequestType'] == 'Create':
    create_endpoint(event, context)