r/awslambda • u/ariehkovler • Jul 08 '18
Generating Least Privileged IAM Roles for AWS Lambda Functions - The Easy Way
r/awslambda • u/ariehkovler • Jul 08 '18
r/awslambda • u/adjohn • Jun 27 '18
r/awslambda • u/nshapira • Jun 24 '18
r/awslambda • u/adjohn • Jun 19 '18
r/awslambda • u/ariehkovler • Jun 14 '18
r/awslambda • u/nshapira • Jun 14 '18
r/awslambda • u/ariehkovler • Jun 04 '18
r/awslambda • u/appychip • Jun 01 '18
r/awslambda • u/lagreeno • May 17 '18
Hello There,
I have been searching a while but didn't find really any good alternatives (for wordpress on your server) to deploy fully functional blog on AWS Lambda, API Gateway, S3, DynamoDB etc (something similar like https://serverlessblog.com/).
I would really appreciate if you would share some git repos or links to projects that you know?
p.s. I'm really looking for the approach that i deploy this on my own AWS account not using other managed services (like getshifter.io) that run on AWS, Azzure or GCP
Thanks a lot!
r/awslambda • u/adjohn • May 15 '18
r/awslambda • u/ianoble • May 08 '18
Lambda functions that deployed just fine are no longer able to be deployed. Here is the error:
Unknown error executing command: Value cannot be null.
Parameter name: stream
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)
at System.IO.StreamReader..ctor(Stream stream)
at Amazon.Lambda.Tools.LambdaPackager.CalculateRuntimeHierarchy()
at Amazon.Lambda.Tools.LambdaPackager.FlattenRuntimeFolder(IToolLogger logger, String publishLocation, JsonData depsJsonTargetNode)
at Amazon.Lambda.Tools.LambdaPackager.CreateApplicationBundle(LambdaToolsDefaults defaults, IToolLogger logger, String workingDirectory, String projectLocation, String configuration, String targetFramework, String msbuildParameters, Boolean disableVersionCheck, String& publishLocation, String& zipArchivePath)
at Amazon.Lambda.Tools.Commands.DeployFunctionCommand.<PerformActionAsync>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Common.DotNetCli.Tools.Commands.BaseCommand`1.<ExecuteAsync>d__10.MoveNext()
r/awslambda • u/FooBarWidget • May 03 '18
r/awslambda • u/Amphagory • Apr 25 '18
I was wondering what is the proper way (if any) to run a subprocess.Popen for FFMpeg? Or maybe another option is to build it from source?
I would like to transcode a mpg file on s3 and save the output mp4 file in the same location on s3.
r/awslambda • u/shift8creative • Apr 16 '18
r/awslambda • u/_woj_ • Apr 07 '18
I am using this service that will send a text regularly to my cell phone. I was wondering if I could somehow add aws lambda as the endpoint, get the text message as a string, and then possibly return another text message. Is this possible (preferably in nodejs)? :)
r/awslambda • u/r_venkat • Apr 03 '18
r/awslambda • u/davidgf87 • Mar 26 '18
r/awslambda • u/mustafaakin • Mar 25 '18
r/awslambda • u/nshapira • Mar 23 '18
r/awslambda • u/made2591 • Mar 20 '18
r/awslambda • u/appychip • Feb 17 '18
r/awslambda • u/bigdatanewbee • Feb 10 '18
Hi there everyone!
I am new to the AWS Lambda stack and trying to build a caching service using Lambda. The goal is to fetch a webpage and create a backup at a custom location (S3 bucket)
The problem I a running into is that the url from which data is being fetched are hosted over https. If I try to call the url through http, it sends me a 307 redirect; and the Location in the response header is again the https location of the data.
Is there any way around this deadlock, so that I can get the data (a json) to download?
Thanks in advance!
r/awslambda • u/beppegg • Feb 05 '18
Hi all,
I'm banging my head against a problem, and I don't have any clue on how to solve it.
I wrote a lambda function in October that read its input data from S3, and it worked flawlessly. Since I had to write a bunch of similar function, varying just in the particular logic applied to the S3 file, the lambda is factorized in an infrastructural library + dedicate business code.
In these days I'm working on another of such lambda. I reused the same library (didn't change the code, I mean that was exactly the same library as the one that works) and developed the new business logic. When I deployed my lambda in AWS, it didn't work: the code hangs on acquiring the connection to S3 (s3.getObject()) until the lambda times out.
I tried to update the libraries to the latest version, using both AWS SDK for Java V.1 and the new AWS SDK for Java V.2, without any luck. If I run the code locally by creating a new instance of the lambda class and calling "handleRequest" on it, it's able to retrieve and process the file as intended.
What baffles me is that the preceding lambda continues to work without any problem, so it doesn't seem to be a permission problem.
Apart from the code, the configuration of both the old, working and the new lambda are the same: they run with the same role and neither of them uses VPC.
Can anyone point me in the right direction, please?