Skip to content

Instantly share code, notes, and snippets.

@gwsu2008
Created June 19, 2020 06:19
Show Gist options
  • Save gwsu2008/bd0e465cbae0f272c67774ac887fc9ac to your computer and use it in GitHub Desktop.
Save gwsu2008/bd0e465cbae0f272c67774ac887fc9ac to your computer and use it in GitHub Desktop.
aws-lambda-import-boto3.py
import os
import os.path
import sys
root = os.environ["LAMBDA_TASK_ROOT"]
sys.path.insert(0, root)
import boto3 #should grab boto3 from included zip first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment