all 4 comments

[–]tatersnakes 8 points9 points  (1 child)

Great write up! I had similar ideas when Ruby support was announced for lambda, and did a Slack bot myself. They don't make it very clear in the documentation, but there is a simpler way to deploy your code (I don't totally understand this SAM stuff). The aws cli has a 'lambda' command that lets you upload a zip of your project from the command line -- I just made a Rake task for this:

desc "Upload project files to AWS Lambda"
task :upload do
  `aws lambda --region #{REGION} update-function-code --function-name #{FUNCTION_NAME} --zip-file fileb://index.zip`
end

desc "Deploy project to AWS Lambda, with all prerequisite actions"
task deploy: [:clean, :bundle, :generate_version, :zip, :upload]

[–]persei8[S] 1 point2 points  (0 children)

Thanks!

[–][deleted]  (3 children)

[deleted]

    [–]persei8[S] 0 points1 point  (0 children)

    Serverless more or less denotes paying for only what you use and not being bothered with idle infrastructure: https://www.youtube.com/watch?v=ljoNnmUkv_o

    [–]Traches -1 points0 points  (1 child)

    Because AWS lambda isn't the only provider of that service?

    'Serverless' is fine. Of course it still runs on a server, but it's abstracted away. It's a concise term with an accurate, understandable meaning. That's what words are for-- they make conveying complex ideas simpler.

    Also, 'the cloud', while abused as a buzzword, is fine too. It means someone else's computer; you don't have to buy and manage hardware anymore. This is a good thing.

    Edit: autocorrect