Questions tagged [serverless-plugins]
45 questions
2
votes
1 answer
How pass output values between aws nested stacks in serverless?
Here is readme about serverless-plugin-nested-stacks plugin. It makes possible to include nested stacks into main one. But how to pass values between stacks? For example I create a resouce in one nested stack - how to path it arn to another stack…

Cherry
- 31,309
- 66
- 224
- 364
2
votes
0 answers
How to emulates google cloud function on local machine to speed up the development cycles?
I found a plugin: https://www.npmjs.com/package/serverless-offline
But it emulates AWS lambda. I write a HTTP function and test it, print out the second argument of the function:
res: …

Lin Du
- 88,126
- 95
- 281
- 483
2
votes
1 answer
serverless dynamodb enable continuous backups
How do I enable continuous backups for my DynamoDB table when using the Serverless Framework?
Ideally, I would define something in serverless.yml that would enable automatic DynamoDB backups

redgeoff
- 3,163
- 1
- 25
- 39
2
votes
0 answers
serverless-dynamodb-local web shell error
First time trying out serverless framework.
Am trying to use the local web shell to do some inspection.
But realise I couldn't list tables or show a list of records.
Web shell example:
var params = {
TableName:…

hackerl33t
- 2,117
- 3
- 14
- 21
1
vote
0 answers
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string in OpenAPI Documentation Generator plugin for serverless in nodejs
We're trying to integrate serverless-openapi-documentation plugin in our application which is developed using nodejs and serverless framework.
Here's a code that I've programmed by following their documentation.
Serverless.yml
service:…

Chirag
- 994
- 2
- 11
- 26
1
vote
0 answers
Check if resource already exists or not using serverless
I want to add if else condition in Serverless where I want to check if a particular resource (eg. AWS WAF)exists or not.
I am using serverless-plugin-ifelse
I want to know if it is possible to do this and how should I approach this. Please feel free…

geek
- 89
- 2
- 10
1
vote
1 answer
Serverless command "invoke test" not found. Run "serverless help" for a list of all available commands
I have my serverless.yml like below
service: omy-api
provider:
name: aws
runtime: nodejs14.x
region: ${opt:region, 'us-east-1'}
stage: ${opt:stage, 'devint'}
memorySize: 128
timeout: 15
custom:
jest:
collectCoverage: true
…

ashakshan
- 419
- 1
- 5
- 17
1
vote
1 answer
Cloudformation root stack resources are not split properly with serverless-plugin-split-stacks
We use serverless-plugin-split-stacks to break resources into nested stacks and have set it up in serverless.yml as follows.
custom:
splitStacks:
perFunction: false
perType: true
perGroupFunction: false
webpack:
webpackConfig:…

Pavindu
- 2,684
- 6
- 44
- 77
1
vote
0 answers
How to set up multiple customDomain for a single API Gateway
I'm trying to serve my website via lambda function rather than having static files in S3, so I'm using serverless and aws-serverless-express. I have a single lambda function which is responsible for returning content for the whole Angular app and I…

Rrr
- 1,747
- 3
- 17
- 22
1
vote
1 answer
Deploy AWS state machine stage specific
I am new to serverless framework. I want to deploy my state machine for dev env only not for other env. How can I deploy it stage-specific?. I have tried serverless-plugin-ifelse for deployment but it is not working in the case of state machines. My…

Shikher Garg
- 109
- 2
- 7
1
vote
1 answer
Serverless Framework - deploying multiple AWS cloudfront distributions
I want to have multiple (based on stage param) AWS cloudfront distribution.
So if --stage dev passed it would deploy a different CloudFront dist than --stage qa.
Each stage should update/create a distribution based on the stage params.
Is it…

Alex Portnoy
- 426
- 1
- 5
- 14
1
vote
1 answer
Pointing Two AWS Lambda Functions to Same Domain
I am using the serverless framework and AWS Lambdas to deploy two function with different path names (/message and /subscribe) to my subdomain at form.example.com.
I am using the serverless-domain-manager plugin for serverless and successfully…

cphill
- 5,596
- 16
- 89
- 182
1
vote
2 answers
Serverless cannot import local files;in same directory; into python file
I have a serverless code in python. I am using serverless-python-requirements:^4.3.0 to deploy this into AWS lambda.
My code imports another python file in same directory as itself, which is throwing an error.
serverless.yml:
functions:
hello:
…

Pranay Sharma
- 41
- 1
- 7
1
vote
0 answers
Multiple ORIGINS for CORS not working in case of custom authorizer error
I have CORS enabled in the application and have multiple origins, Its working fine with normal requests and error responses. But when I am getting some error in custom authorizer or deny the authorization. The CORS is not working for any status…

Ravi
- 49
- 4
1
vote
1 answer
Serverless plugin domain manager not reducing the resource limit
I ran into the 200 resource limit on cloudformation when using serverless. I saw on the blog that using the domain manager will help mitigate this issue by freeing a few resources from the api gateway.
After implementing this I realized it did…

Ridan
- 319
- 2
- 14