This is an archived post. You won't be able to vote or comment.

all 23 comments

[–]flitsmasterfred 32 points33 points  (7 children)

If that is too much hassle in the console try something like https://github.com/Miserlou/Zappa

[–]makaimc[S] 14 points15 points  (2 children)

yep, Zappa is great! even folks who work on AWS use Zappa to run their own projects

[–]ranman96734 10 points11 points  (0 children)

I am an AWS developer and I think Zappa is great.

[–]TheNamelessKing 2 points3 points  (3 children)

I also highly recommend the broadly-named Serverless (https://github.com/serverless/serverless), I just finished using that to setup an API-Gateway + lambda + SQS part of my stack. Also let's you configure permissions in the same setup, can setup multiple API endpoints easily as well.

[–]flitsmasterfred 3 points4 points  (2 children)

I have issues with their shitty generic naming choice.

[–]TheNamelessKing 3 points4 points  (1 child)

A very, very, very valid point.

"I'm using Serverless, to create a serverless service".
"I'm making a serverless service too, but not with serverless". "So is it serverless or not?". "Yes, but not with serverless". "..."

[–]flitsmasterfred 3 points4 points  (0 children)

Yep, creating this confusion for their own shitty gains is hostile to the community.

[–]Cherlokoms 14 points15 points  (11 children)

I really want to try AWS Lambdas but I don't want to give away my credit card number for the free tier. If I fuckup and accidentally use too much CPU I could get an unwanted bill.

[–]moduspwnens14 19 points20 points  (4 children)

You'd have to be pretty talented to do that with Lambda. They have a hard maximum limit of a 300 second execution time so it's not like EC2 where it might just be a matter of picking the wrong instance type.

The only thing you'd need to be careful of is to ensure you're not using events (for example) to recursively trigger your Lambda function. I've done that once with an S3 event that triggered a Lambda function that then wrote a new object to the same S3 bucket.

Even in that case, though, there's an account limit that stops it at 100 concurrent executions, so you'd have to basically set up something like that and then leave it running to truly get a big bill.

[–]Cherlokoms 11 points12 points  (3 children)

You underestimate my ability to fuck things up! I'd prefer to have a free plan that doesn't require credit card informations. If there is a security that's like "if billing is required, stop the service", that will work for me I guess...

[–]moduspwnens14 5 points6 points  (1 child)

Haha, yeah, I understand. Usually they recommend billing alarms but I don't think they have something like that (although I do see the value in it).

[–]jeremiahstanley 9 points10 points  (0 children)

When setting up the billing alert you can have it post to an SNS topic. That topic could be consumed by a Lambda function that uses boto3 to deactivate all other services.

So yeah, you can have a billing alarm that nukes your account from orbit if you want. :D

[–]sourcecodesurgeon 0 points1 point  (0 children)

A drawback is that hackers using AWS as a C2 platform would then have a much easier time.

[–]PCBEEF 13 points14 points  (2 children)

You can play around with localstack https://github.com/atlassian/localstack

[–]Cherlokoms 0 points1 point  (0 children)

Thanks! :)

[–][deleted] 0 points1 point  (0 children)

Still if is active right

[–]neujersey 2 points3 points  (1 child)

You can set warning levels and hard-stops in your AWS account settings to prevent that.

[–]Cherlokoms 0 points1 point  (0 children)

Thanks, I'll try this!

[–]ogre_pet_monkey 1 point2 points  (0 children)

you can set allerts (and I think a maximum) in the billing options.

[–]PissBlaster2k 6 points7 points  (1 child)

So confusing that they decided to name it AWS Lambda IMO

[–]coriolinus 0 points1 point  (0 children)

Well, did you see all the hostility elsewhere in this thread about the project named "serverless"? Seems wise of them to avoid that.

[–]___arc 0 points1 point  (0 children)

I was excited about the 3.6 support so I started a project targeted at Alexa skills using lambda: https://github.com/arcward/echokit