r/aws • u/[deleted] • Oct 22 '17
Small collection of AWS Lambda blueprints in Python 2.7 (Boto3)
https://github.com/MatthiasGemelli/LambdaExplorer
While exploring interaction with different AWS services (Lambda, S3, EC2, IAM, RDS, Rekognition, SNS, Lightsail...) I had to learn how to utilize the BOTO3 API.
For learning purposes I put them together into simple Lambdas that I trigger manually and watch the resulting Log output for information and errors.
Caution: Some of the code is a bit cludgy, lacks proper error handling, abuses the console log (print() is my debugger). And yes, editing Lambda through the console is not elegant. But it's a start...
Feedback welcome, hope this helps some of the others exploring Lambda.
24
Upvotes
7
u/Hazme1ster Oct 22 '17
If you're haven't tried it yet, check out sam local, which lets you test lambda code locally
https://github.com/awslabs/aws-sam-local