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
2
votes
1 answer

How to add stack-level tags to cloudformation stack deployed using SAM

I'm trying to add tags to a stack while using SAM deploy, but they're not showing up. The SAM cli command code can be found below. sam deploy --stack-name test-stack --resolve-image-repos --capabilities CAPABILITY_NAMED_IAM…
Dev
  • 612
  • 2
  • 13
  • 33
2
votes
0 answers

TypeError: (intermediate value).run is not a function error in serverless-finch client deploy

I am using serverless-finch plugin for serverless client deploy. My configuration is as below: service: myservice frameworkVersion: '3' plugins: - serverless-finch custom: client: bucketName: xyz.com distributionFolder:…
mnhmilu
  • 2,327
  • 1
  • 30
  • 50
2
votes
2 answers

How to create IAM user with access key and secret key using Serverless framework?

I'd like to use Serverless framework to create an IAM user for programmatic access with certain Policies attached to it and export it's Access Key ID and Secret Key as environment variables for lambda. How to achieve that? (something like here is…
Ribtoks
  • 6,634
  • 1
  • 25
  • 37
2
votes
2 answers

Angular SSR on AWS serverless lambda returns random numbers and characters

I'm trying to deploy an Angular SSR app to AWS using serverless and lambda. Being a total beginner in this, I'm using this starter project to do so. I did not change any of the code except changing the name of the project to "public". There is a…
user3255061
  • 1,757
  • 1
  • 30
  • 50
2
votes
1 answer

model.hasMany called with something that's not a subclass of Sequelize.Model

I am getting the below error whenever I tried to call any call from serverless framework lambda [offline] _____ HANDLER RESOLVED _____ offline: Failure: product.hasMany called with something that's not a subclass of Sequelize.Model Error:…
2
votes
2 answers

CloudFront origin for specific region content

I have created four S3 buckets, each with a simple index.html file and each with unique content. I have created a CloudFront distribution and assigned it four origins, one for each of the four buckets. Each origin has an Origin Access Identity and…
Matt W
  • 11,753
  • 25
  • 118
  • 215
2
votes
1 answer

Serverless Framework dry run or test without deploying

There's any way to test Serverless Framework code without deploying it? Similar to Terraform's dry run. I've tried using the --noDeploy flag, but it doesn't seem to work. I'm trying to create a CI pipeline for it, but can't find any solution.
2
votes
1 answer

Local development with serverless framework

I have a microservices project using Serverless Framework that has the following structure: project └───service1 │ │ handlers.py │ │ serverless.yml │ │ requirements.txt | | package.json └───service2 └───service3 └───service4 Each…
2
votes
1 answer

AWS Sam delpoy failed

I've create sam project file through sam init. I've chosen "nodejs14.x" runtime and hello world template sam build seems good. But sam deploy --guided failed and error message is Looking for resources needed for deployment: Creating the…
devcrazy
  • 505
  • 5
  • 14
2
votes
1 answer

serverless Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type

I am trying to deploy AWS Lambda using Serverless framework and have following in serverless.yaml provider: name: aws runtime: python3.8 region: us-west-2 stackName: ${self:service}-${self:custom.name}-${opt:stage, 'dev'} stackTags: …
2
votes
1 answer

Access to output data from stack

I am creating a REST API using CloudFormation. In an other CloudFormation stack I would like to have access to values that are in the ouput section (the invoke URL) of that CloudFormation script. Is this possible, and if so how?
2
votes
1 answer

AWS Amplify GraphQL authorization based on field values

I have an AWS Amplify project that has three different user groups in Cognito. An Admin, Instructor, and Student group. I also have a GraphQL Schema that looks like this. type DriveTime @model { id: ID! start: AWSDateTime! end: AWSDateTime! …
2
votes
2 answers

How to schedule on-demand tasks on aws serverless

We are developing a serverless application on AWS. Currently, we have a use case in which we want a user to be able to create configurations for schedules to send them daily, weekly or monthly reports at a specific time on the day on which the…
2
votes
1 answer

Does AWS lambda (serverless) support the installation of applications the same way it supports one-off functions?

I understand that using AWS Lambda allows us to submit single functions to a runtime and have them execute when needed. But what about the software these functions depend on? Where do these get installed? Does the installation and configuration…
Cybernetic
  • 12,628
  • 16
  • 93
  • 132
2
votes
1 answer

Why does AWS sam package causes - Unable to import module '' No module named '' - during sam deploy but sam build does not?

The project I am currently working on creates a lambda layer which contains a file called app.py, within this file is a function named lambda_handler which is interest to be used as Handler for whatever lambda function includes the layer. The sam…