-
-
Save sakibguy/b037feb8f55be13ed3653edb2c73ba13 to your computer and use it in GitHub Desktop.
AWS Lambda Deployment Package in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import pandas as pd | |
import numpy as np | |
import requests | |
def lambda_handler(event, context): | |
pandas_version = pd.__version__ | |
numpy_version = np.__version__ | |
r = requests.get("https://www.google.com") | |
google_status_code = r.status_code | |
return_statement = 'Pandas Version: ', pandas_version, 'Numpy Version: ', numpy_version,\ | |
'Google Status Code: ', google_status_code | |
return { | |
'statusCode': 200, | |
'body': json.dumps(return_statement) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment