Questions tagged [serverless-plugins]
41 questions
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…
![](../../users/profiles/1063824.webp)
Rrr
- 1,589
- 3
- 16
- 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…
![](../../users/profiles/6798035.webp)
Shikher Garg
- 57
- 6
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:
…
![](../../users/profiles/4292912.webp)
Pranay Sharma
- 31
- 5
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…
![](../../users/profiles/7810126.webp)
Ravi
- 31
- 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…
![](../../users/profiles/1834913.webp)
Ridan
- 319
- 2
- 12
1
vote
1 answer
serverless plugin behind proxy
How can I use the command serverless plugin list behind proxy?
I am getting this error:
request to https://raw.githubusercontent.com/serverless/plugins/master/plugins.json failed, reason: connect ECONNREFUSED 151.101.84.133:443
The command…
![](../../users/profiles/4731259.webp)
Azize
- 2,386
- 1
- 14
- 28
1
vote
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…
![](../../users/profiles/243302.webp)
Sammy
- 2,087
- 2
- 28
- 66
1
vote
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:…
![](../../users/profiles/9780778.webp)
hackerl33t
- 1,195
- 2
- 8
- 17
1
vote
1 answer
Serverless deploy not picking-up AWS credentials
On PowerShell, I defined two environment variables to define AWS secret and access key:
$AWS_ACCESS_KEY_ID="AAAA"
$AWS_SECRET_ACCESS_KEY="CCCC"
PS C:\Users\Obaid\serverless\helloJava> serverless deploy
Serverless: Packaging service...
Serverless…
![](../../users/profiles/2442190.webp)
obaid
- 341
- 3
- 8
0
votes
0 answers
Serverless: TypeError: Cannot read property 'outputs' of undefined
service: testnewman
# app and org for use with dashboard.serverless.com
#app: your-app-name
#org: your-org-name
plugins:
- serverless-bundle
- serverless-pseudo-parameters
- serverless-plugin-stack-config
- serverless-plugin-newman
-…
![](../../users/profiles/2699001.webp)
S Khurana
- 3,003
- 8
- 35
- 87
0
votes
0 answers
Can I use serverless-plugin-webpack with serverless-plugin-optimize?
I am using the Serverless Framework for my Node.js AWS Lambda function.
I am trying to reduce the size of my function package and I have been using serverless-plugin-optimize already. I came across serverless-plugin-webpack and was wondering if I…
![](../../users/profiles/10050675.webp)
aryanm
- 374
- 3
- 14
0
votes
0 answers
AWS SSM offline parameters
I am trying to set SSM parameters for when I'm running offline via the serverless framework, however it only seems to work during startup, when I issue getParameters requests using the aws sdk from within my lambda functions, it is only retrieving…
![](../../users/profiles/10600991.webp)
Tzannetos Philippakos
- 386
- 2
- 11
0
votes
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:…
![](../../users/profiles/8810941.webp)
Pavindu
- 1,393
- 5
- 18
- 41
0
votes
1 answer
how to create a http proxy api gateway from serverless without creating lambda function
I have to create http proxy api gateway from serverless code for this flow: https://aws.amazon.com/blogs/compute/using-amazon-api-gateway-with-microservices-deployed-on-amazon-ecs/
![](../../users/profiles/6016716.webp)
sarbada
- 195
- 9
0
votes
1 answer
How do you request the DynamoDB.DocumentClient service in a plugin?
To make AWS requests in a plugin, you can do something like this:
constructor(serverless, options) {
...
this.provider = serverless.getProvider('aws');
}
...
hook() {
...
await this.provider.request('S3', 'put', params);
…
![](../../users/profiles/2687324.webp)
neverendingqs
- 3,255
- 1
- 19
- 53