Questions tagged [serverless-architecture]

Serverless architectures refer to applications that significantly depend on third-party services (knows as Backend as a Service or "BaaS") or on custom code that's run in ephemeral containers (Function as a Service or "FaaS"). By using these ideas, and by moving much behavior to the front end, such architectures remove the need for the traditional 'always on' server system sitting behind an application.

Reference: http://martinfowler.com/articles/serverless.html

177 questions
66
votes
5 answers

Rename an Azure Function

How to rename an Azure Function? I want to replace a default 'HttpTriggerCSharp1' name to my own. At the moment unfortunately this name is included in the function url and there is no option to change…
43
votes
4 answers

AccessDeniedException: Unable to determine service/operation name to be authorized

Using AWS CLI aws --version aws-cli/1.11.21 Python/2.7.12 Darwin/15.3.0 botocore/1.4.78 Creating a POST method for API Gateway as explained at https://github.com/arun-gupta/serverless/tree/master/aws/microservice#post-method. This method can be…
Arun Gupta
  • 3,965
  • 5
  • 31
  • 39
23
votes
4 answers

Serverless: The specified bucket does not exist

I stupidly removed the s3 bucket for my serverless project. When I now try and deploy or remove my application I get this error: The specified bucket does not exist How can I recreate the s3 bucket from Serverless?
Freid001
  • 2,580
  • 3
  • 29
  • 60
17
votes
1 answer

Where to put "useDotenv: true" in serverless.yml file?

I was using serverless templates and all worked fine until suddenly all my deployments started ignoring .env files. I searched through the documentation and it says that if I want to use the environment variables from .env files I now have to add…
17
votes
2 answers

What are the differences between IPFS and hyperdrive?

A year ago I attended Munich meetup where I first saw hyperdrive project live, and found it impressive. I also recently stumpled upon IPFS –the InterPlanetary file system– and I wonder about the differences. It's easy to have a lot of repercusion…
17
votes
3 answers

prevent NodeJS program from exiting

I am creating NodeJS based crawler, which is working with node-cron package and I need to prevent entry script from exiting since application should run forever as cron and will execute crawlers at certain periods with logs. In the web application,…
Aren Hovsepyan
  • 1,947
  • 2
  • 17
  • 45
15
votes
6 answers

AWS Eventbridge: Pattern to capture ALL events

I'd like to deploy an AWS Event Rule in Eventbridge which is triggered by all events, with no filtering whatsoever. I've tried the following patterns with no luck. { source: ["*"] } According to the documentation you cannot leave the pattern empty.…
14
votes
4 answers

Cannot debug serverless application in Visual Studio Code

I have tried to debug serverless application developed using serverless framework in VS code. I have followed this article. But when I trying to debug the code I'm getting an error from VS code as below. Cannot launch program…
13
votes
1 answer

Disable SLS_DEBUG=* in the Serverless Framework

When using the serverless framework (on a Mac OS X High Sierra), the SLS_DEBUG environmental variable was set to enable verbose debug info export SLS_DEBUG=* Question: Now how do you disable it (other than moving to a new terminal)? export…
11
votes
4 answers

How to invoke Durable function by timer trigger?

I am new to Durable function(Orchestration function) and seen sample application as per Microsoft documentation.So I have few doubts. example: public static async Task Run( [HttpTrigger(AuthorizationLevel.Anonymous,…
10
votes
1 answer

Event Sourcing with Kinesis - Replaying and Persistence

I am trying to implement an event-driven architecture using Amazon Kinesis as the central event log of the platform. The idea is pretty much the same to the one presented by Nordstrom's with the Hello-Retail project. I have done similar things with…
8
votes
1 answer

Serverless error - No file matches include / exclude patterns

I am trying some skeleton deployment using python. Here is my serverless.yaml My folder structure is serverless-test |_lambdas |____handler.py |_layers |____common |_________somefunction.py service: serverless-test frameworkVersion:…
Abhijith Nagaraja
  • 3,370
  • 6
  • 27
  • 55
8
votes
4 answers

Serverless Offline: handle multiple API gateways

You can easily debug your serverless application with the Serverless Framework and the Serverless Offline Plugin when you only have one, but how do you handle the case when you have multiple API Gateways/services? Should I run serverless offline for…
gr3g
  • 2,866
  • 5
  • 28
  • 52
7
votes
1 answer

serverless deploy throws `spawn serverless ENOENT` using serverless compose

serverless deploy throws spawn serverless ENOENT Getting the below error when trying to deploy client-service, although before that all services are getting deployed. Error: spawn serverless ENOENT Using the below versions for serverless and…
7
votes
2 answers

How to limit parallel execution of serverless lambda function

I am using AWS and using the serverless framework. My serverless lambda function gets triggered by event. Then I talk with Database and there is a limit in the number of connections I can open with DB. So I want to only run 5 lambda functions at a…
1
2 3
11 12