Questions tagged [serverless]

Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the allocation of machine resources. Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity. It is a form of utility computing.

Serverless computing still requires servers. The name "serverless computing" is used because the server management and capacity planning decisions are completely hidden from the developer or operator. Serverless code can be used in conjunction with code deployed in traditional styles, such as microservices. Alternatively, applications can be written to be purely serverless and use no provisioned services at all.

3486 questions
109
votes
3 answers

What is the difference between a Serverless Function, and a Lambda Function

I am playing around with the Cloudformation Serverless Transformation, and am trying to figure out how and when to use AWS::Serverless::Function or AWS::Lambda::Function. For some reason the Lambda version is used for SAM examples in AWS. This is…
Derrops
  • 7,651
  • 5
  • 30
  • 60
101
votes
4 answers

When to choose App Engine over Cloud Functions?

Sorry, if this is a naive question, but i've watched bunch of talks from google's staff and still don't understand why on earth i would use AE instead of CF? If i understood it correctly, the whole concept of both of these services is to build…
82
votes
7 answers

AWS SAM YAML template - Unknown Tag !Ref

When I try to deploy my AWS SAM YAML file, it fails saying the !Ref is an unknown tag. Any ideas to get around this? AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: MySimpleFunction: Type:…
EdsonF
  • 2,719
  • 3
  • 30
  • 34
62
votes
13 answers

AWS Aurora MySQL serverless: how to connect from MySQL Workbench

I was trying to use AWS Aurora Serverless for MySQL in my project, but I am impossible to connect to it, though I have the endpoint, username, password. What I have done: From AWS console managment, I select RDS > Instances > Aurora > Serverless…
Phong Vu
  • 2,726
  • 6
  • 24
  • 52
62
votes
5 answers

aws-sam-local environment variables

I am following the readme here: https://github.com/awslabs/aws-sam-local I have a lambda written in python 3.6 and its similar to the helloworld example here :…
gotjava2012
  • 661
  • 1
  • 6
  • 7
58
votes
6 answers

Azure Function timer configure through app settings

I am working on Azure functions timer Job , i need to get the cron expression from the appsettings. Please let me know, how can i get the value from the appsettings in the Azure functions. I want to run my azure function starting from 9:00 AM to…
Palanivelu Samudi
  • 1,125
  • 1
  • 10
  • 13
53
votes
4 answers

Fargate vs Lambda, when to use which?

I'm pretty new to the whole Serverless landscape, and am trying to wrap my head around when to use Fargate vs Lambda. I am aware that Fargate is a serverless subset of ECS, and Lambda is serverless as well but driven by events. But I'd like to be…
janDro
  • 1,426
  • 2
  • 11
  • 24
42
votes
7 answers

How can I keep Google Cloud Functions warm?

I know this may miss the point of using Cloud Functions in the first place, but in my specific case, I'm using Cloud Functions because it's the only way I can bridge Next.js with Firebase Hosting. I don't need to make it cost efficient, etc. With…
42
votes
4 answers

How do you look at console.log output of the amazon lambda function

When you do a console.log('Loading function'); in an amazon lambda function, where does that go? My setup api gateway lambda function nodejs6.10 curl https://n2tredacted.execute-api.us-east-1.amazonaws.com/prod/redactedFunc
38
votes
4 answers

What is the difference between AWS lambda and AWS Lambda@EDGE?

What is the difference between simple aws lambda and aws lambda@edge ?
mnhmilu
  • 2,327
  • 1
  • 30
  • 50
36
votes
6 answers

AWS Serverless | Code storage limit exceeded

I have an error Code storage limit exceeded deploy the serverless application in AWS. Total size 409 B. The error message says: An error occurred: HelloLambdaFunction - Code storage limit exceeded. (Service: AWSLambda; Status Code: 400; Error Code:…
Ashish Kadam
  • 1,439
  • 2
  • 13
  • 18
35
votes
1 answer

Write to Google Cloud Storage from Cloud Function (python)

I am trying to upload a file to google cloud storage from within a cloud function. I can't import the cloud storage library into my function, though. Can cloud storage be used from within cloud functions in this manner? Cloud Function from…
35
votes
2 answers

How to describe AWS Lambda function test events in CloudFormation template?

I describe existing AWS Lambda function in CloudFormation template and I face with the next issue. In our Lambda we configured few test events which helps us to verify some usecases (I mean functionality from the screenshot below). But I don't see…
Hleb
  • 7,037
  • 12
  • 58
  • 117
32
votes
6 answers

How to fix CloudRun error 'The request was aborted because there was no available instance'

I'm using managed CloudRun to deploy a container with concurrency=1. Once deployed, I'm firing four long-running requests in parallel. Most of the time, all works fine -- But occasionally, I'm facing 500's from one of the nodes within a few seconds;…
Jan Hacker
  • 455
  • 1
  • 4
  • 5
28
votes
1 answer

AWS amplify deploy failure due to aws-exports

I am trying to deploy my reactJs app to Amplify. I have my Github connected to Amplify. During deployment it shows the following error at Build step: 2020-01-07T19:35:22.127Z [INFO]: Failed to compile. 2020-01-07T19:35:22.129Z [INFO]:…
Telenoobies
  • 938
  • 3
  • 16
  • 33
1
2 3
99 100