awsinaction / lambda Goto Github PK
View Code? Open in Web Editor NEWAWS in Action: Lambda
Home Page: https://cloudonaut.io/
AWS in Action: Lambda
Home Page: https://cloudonaut.io/
Hi, I've followed all your instructions, it took a few hours over few days since this is the very first Lambda function I'm trying to setup. So had to get everything from python to aws-cli and aws-shell installed, and all the IAM permissions figured out. I finally got to the "CREATE_COMPLETE" step. Uploaded my first image to -original bucket, and nothing showed up in the -resized bucket. Is there something else I might be missing, I re-read the guide a few more times, and I think I did every step. Also is it possible to not have to use a whole bucket for -original and -resized, but to put them as folders inside another bucket?
I have followed the instructions and when I use your lambda.zip file it seems to work. But when I update the config to change the image sizes, it fails. I have used the npm install and ./bundle.sh to create the zip. I then tear down the CloudFormation and the Lambda and start again. It creates the new lambda correction but it doesn't work. When I look at the log file I get:
START RequestId: b1fd35d3-4391-11e7-9a6e-e345aeb705c6 Version: $LATEST
Unable to import module 'index': Error
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/var/task/node_modules/gm/lib/convenience/morph.js:7:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
END RequestId: b1fd35d3-4391-11e7-9a6e-e345aeb705c6
This is the perfect tutorial what i am looking for. Everything is perfect for me except the resized folder names. How can i customize the folder names ? Currently I have folder names 150x, 50x50 and x150. I need to rename them as Icon, Small, and Big. Please guide me.
The runtime parameter of nodejs is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs4.3) while creating or updating functions
Hi there.
First of all thanks for the great work that you've done, really helpfull :)
Was wondering if it's possibel to change the code so that the resized bucket is the same as the original bucket (and in the same folder of the original).
Basicly I want users to upload their images (they go to different folders). After that, Lambda resized it automaticly and saves the resized images in the same place, so I don't have to change the url (only the name of the file)
Thanks
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.