Questions tagged [aws-serverless]

AWS Serverless implementation with API Gateway, Lambda functions, CloudFormation and SAM (Serverless Application Model).

Serverless computing allows you to build and run applications and services without thinking about servers. Serverless applications don't require you to provision, scale, and manage any servers.

You can build them for nearly any type of application or backend service, and everything required to run and scale your application with high availability is handled for you.

Links

  1. Serverless Computing and Applications

  2. AWS Serverless Application Repository

  3. Serverless AWS Functions documentation

1217 questions
3
votes
2 answers

Serverless Offline - ECONNREFUSED Elasticmq with Docker-Compose

I am trying to work on a webscraper using the Serverless Framework that I want to be easily ran locally by users without having to install any necessary depedencies on their local machine. I am using serverless-offline-sqs with a local Elasticmq…
3
votes
1 answer

Environment variable GOOGLE_APPLICATION_CREDENTIALS must contain string

In my serverless.yml file, I’m trying to add an environment variable called GOOGLE_APPLICATION_CREDENTIALS which points to my service account credentials JSON file but when added to the serverless file I'm getting an error Environment variable…
3
votes
2 answers

for an AWS lambda serverless nodejs app, how do you execute a request in the development environment?

I am taking over an AWS lambda serverless nodejs app and I am trying to figure out how to execute an endpoint in my development environment. For my purposes I am trying to simulate a request like the…
3
votes
1 answer

Can AWS Aurora Serverless Clusters be configured via AWS Explorer in DataGrip?

I'm currently having issues setting up the AWS Explorer plugin in DataGrip to recognise the Aurora Serverless Clusters (MySQL). I have set up credentials from IAM in the credentials file, and can access other AWS services (if I select the dropdown…
3
votes
2 answers

Adding XRAY Tracing to non-rest functions e.g., SQS, Cognito Triggers etc

Using the Serverless framework, I have functions that aren’t attached to an API Gateway Endpoint, such as: Cognito Triggers S3 Event DynamoDB Stream SQS Events I am also using XRAY tracing, which I have set as tracing: true in my serverless.yml…
Matt Rowles
  • 7,721
  • 18
  • 55
  • 88
3
votes
2 answers

provider.logRetentionInDays not working as expected

I am using serverless framework version 2.11.0 When trying to deploy, it is throwing serverless error: Configuration error at 'provider.logRetentionInDays': should be equal to one of the allowed values But it is not showing any allowed values. Also…
3
votes
2 answers

Can't delete Lambda@Edge even though previously associated CloudFront distribution was already destroyed

Even though CloudFront distribution which was assiciated with a number of Lambda functions deployed @edge was already destroyed a couple of days ago, I still can't delete my lambda: it keeps referencing me to the "documentation for Deleting…
3
votes
10 answers

AWS Lambda Create Function - Request failed with status code 403

Trying to create a new AWS Lambda Function with the root account for the first time using management console. I am receiving the error "Request failed with status code 403" no matter how many different options I tried. I've already tried changing my…
mrgenco
  • 348
  • 2
  • 9
  • 27
3
votes
1 answer

Serverless Deploy fails: At least one of ProvisionedThroughput, ... is required

I am trying to deploy new Lambda Functions and API Gateways to AWS using the npm serverless package. The new functions are being deployed on top of previously existing functions, and new DynamoDB tables are being created along with the new lambda…
3
votes
2 answers

Serverless option as default value for option not working

Hi I am trying to do the following with serverless: If I am not giving an option I want it to pick another option ${opt:fb,${opt:environment,'dev'}} However something is wrong as this error always appear as I call sls deploy: A valid option to…
3
votes
2 answers

Apollo graphql service on AWS Lambda Cannot read property 'Accept' of null

Apollo graphql service on AWS Lambda Cannot read property 'Accept' of null { "errorType": "TypeError", "errorMessage": "Cannot read property 'content-type' of undefined", "stack": [ "TypeError: Cannot read property 'content-type' of undefined", …
3
votes
0 answers

AWS, serverless SAM template - publishing nested applications

I have defined AWS Serverless nested applications within my root SAM template by using Location property pointing to my local file system (as advised here - Defining a Nested Application from the Local File System). Packaging and deploying work…
3
votes
1 answer

AWS Api-Gateway error 500 on postman / success on api gateway test

I am facing a strange issue with a lambda intergration in api gateway ( tried proxy as well same issue) lambda first hits AppSync and returns either JSON content on error or a XLXS file on success. while testing on API gateway test console it…
3
votes
1 answer

API not invoking the lambda based on the response from the lambda authorizer and return null message

I am trying to authenticate api based on the response from the Lambda authorizer. So i have created following stack: Lambda function call 'Test-Lambda' which return some value Created an API Gateway and attached to the 'Test-Lambda' Now created a…
umdev
  • 359
  • 6
  • 17
3
votes
1 answer

How to get topic name and client id from aws mqtt message broker to aws lambda

After mapping send message to lambda function, in AWS IoT core with query SELECT * From '+', I am getting only messages in aws lambda event object. I am using python 3. How can I get topic name and client Id along with messages.
user2681304
  • 129
  • 6