Questions tagged [serverless-plugins]
45 questions
37
votes
5 answers
How to remove stage from URLs for AWS Lambda functions + Serverless framework?
I'm using Serverless Framework to deploy functions in AWS Lambda, but I can't find where/how I can remove the stage specifier from the URL endpoints created. The documentation does not seem to cover this part.
For example, this is my serverless.yml…

Jochem Schulenklopper
- 6,452
- 4
- 44
- 62
19
votes
2 answers
serverless-aws-documentation model definitions with optional fields?
I want to define request and response models. I use the Serverless Framework with AWS and everything I'm seeing recommends using serverless-aws-documentation
The README says that I need to have this line in…

Serverless chap
- 183
- 1
- 9
10
votes
1 answer
Serverless-framework, when does the API Gateway URL change?
I am using serverless-framework to deploy a lambda with http endpoints on AWS. This works fine and returns a API Gateway endpoint.
I wanted to know under what scenarios does the endpoint URL change. I need the URL to be constant, know deleting and…

Sunny
- 932
- 8
- 22
9
votes
1 answer
Serverless Framework AWS 403 Forbidden Error with Domain Only
I am working on a serverless setup for a project and ran into a strange error. This was working fine before I had to delete my old certificates and make a new one.
In short, I am following the tutorial series at serverless-stack.com for reference,…

Joseph Astrahan
- 8,659
- 12
- 83
- 154
5
votes
3 answers
How to avoid giving `iam:CreateRole` permission when using existing S3 bucket to trigger Lambda function?
I am trying to deploy an AWS Lambda function that gets triggered when an AVRO file is written to an existing S3 bucket.
My serverless.yml configuration is as follows:
service: braze-lambdas
provider:
name: aws
runtime: python3.7
region:…

Gaurav Keswani
- 431
- 4
- 14
5
votes
3 answers
How to locally run my cloudflare worker serverless function, during development?
I managed to deploy my first cloudflare worker using serverless framework according to
https://serverless.com/framework/docs/providers/cloudflare/guide/
and it is working when I hit the cloud.
During development, would like to be able to test on…

tzador
- 2,535
- 4
- 31
- 37
4
votes
1 answer
'fs-extra' symlink not permitted when running as administrator and with the policy added, running mklink myself works?
I'm trying to use this plugin together with serverless to bundle my dependencies using symlinks. Under the hood it uses fs.symlink from fs-extra as follows:
async function link (target, f) {
await fs.ensureDir(path.dirname(f))
await…

SebastianG
- 8,563
- 8
- 47
- 111
4
votes
1 answer
MinimumSizeCompression is not working with serverless
I'm using the new serverless compression option using minimumCompressionSize = 1KB.
Everything works fine on payloads > 1KB, yet payload <1KB are also compressed.
It's like the minimumCompressionSize remains 0 whatever value I choose (See image…

Cyrine
- 165
- 1
- 1
- 7
4
votes
0 answers
TypeError: Path must be a string. Received undefined
I a persistent error while using serverless framework with serverless-offline and jest unit testing module.
I am trying to test my serverless function (lambda) using serverless-jest-plugin which is supposed to integrate jest on serverless. Following…

Souf
- 325
- 1
- 5
- 16
3
votes
0 answers
How to solve Serverless split stack plugin failure around resourceConcurrency
So I have a stack exceeding 500 resources and found out this serverless plugin which splits stack according to the several configurations.
Below is my configuration for splitting the stack. Upon using the below configuration I was able to split the…

Auto geek
- 464
- 1
- 6
- 21
3
votes
1 answer
Using serverless-tscpaths plugin with serverless-plugin-optimize gives import error with relative paths
In my serverless.yml, I use both serverless-tscpaths plugin for resolving paths defined in tsconfig and serverless-plugin-optimize for minifying and reducing the bundle size. However when the serverless-tscpaths plugin is executed all the paths…

user3536652
- 153
- 2
- 12
3
votes
0 answers
Using Serverless Typescript plugin changes output structure when importing shared files
I have the following folder structure for a project running serverless-plugin-typescript:
- services
- common
- sample-service
sample-service houses the serverless.yml and all endpoints. common hosts a few…

Josh Dura
- 47
- 1
- 4
3
votes
1 answer
Invoke api running on localhost from aws lambda in nodejs
I am running a api on http://localhost:80/api/test, I want to invoke this api from lambda function but I am not sure what plugin or anything I should use to access same.The reason for for doing so is, I want to do testing lambda and api in…

Dharam
- 469
- 2
- 9
- 23
3
votes
2 answers
Correct .env file with serverless-dotenv-plugin
I'm using the following as a custom serverless-dotenv-plugin plugin configuration:
custom:
dotenv:
path: .env-${opt:stage, 'local'}
But what I'm really trying to get is that the environment be loaded from .env file when I give no arguments…

Sammy
- 3,395
- 7
- 49
- 95
2
votes
0 answers
Serverless deployment, UnknownEndpoint: Inaccessible host
I am trying to deploy the python serverless application on AWS.
I follow pretty straightforward tutorial and I do following steps:
Install serverless
npm install -g serverless
Generate template project sls create --template aws-python3 --name…

Yoh0xFF
- 1,450
- 2
- 18
- 31