carloscarcamo / aws-lambda-unzip-py Goto Github PK
View Code? Open in Web Editor NEWAWS Lambda function to extract zip files uploaded to S3
License: MIT License
AWS Lambda function to extract zip files uploaded to S3
License: MIT License
This looks like python 2 code and needs updating to support python 3 because Python 2 runtime is no longer an options on AWS Lambda. On python 3 runtime get the following error,
AttributeError: module 'urllib' has no attribute 'unquote_plus'
From the examples I've seen you could remove the static variable and add it into the event:
def lambda_handler(event, context):
bucket = event['Records'][0]['s3']['bucket']['name']
In your python code there is no folder parameter
https://github.com/carloscarcamo/aws-lambda-unzip-py/blob/master/unzip.py#L12
I hope you add in a folder parameter so that I have ability to take the zip files from folder A and put them on folder B
Function Logs:
START RequestId: a1ed0a88-8ed6-40b2-b4b0-a6852f887078 Version: $LATEST
An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist.
Error getting object test/key from bucket unzippedftp. Make sure they exist and your bucket is in the same region as this function.
END RequestId: a1ed0a88-8ed6-40b2-b4b0-a6852f887078
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.