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…
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…
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: …
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…
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…
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…
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…
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:…
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…
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 -…
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…
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…
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:…
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/
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); …
neverendingqs
  • 3,255
  • 1
  • 19
  • 53