manelferreira / serverless-sequelize-migrations

A Serverless plugin to manage sequelize migrations
MIT License
21 stars 17 forks source link

SequelizeConnectionError #17

Open crazydev901 opened 4 years ago

crazydev901 commented 4 years ago

service: ${env:SLS_SERVICE_NAME} # Name of the CloudFormation stack functions: ${file(serverless/functions/index.js), ""}

frameworkVersion: ">=1.21.0 <2.0.0" # Serverless Framework version constraints

usagePlan: # Optional usage plan configuration quota: limit: 1000000 offset: 2 period: MONTH throttle: burstLimit: 200 rateLimit: 100

defaults: stage: ${env:SLS_STAGE} region: ${env:SLS_REGION}

provider: name: aws runtime: nodejs10.x memorySize: 512 timeout: 18 # important stage: ${env:SLS_STAGE} region: ${env:SLS_REGION} profile: ${env:SLS_PROFILE}

versionFunctions: false # https://github.com/dougmoscrop/serverless-plugin-split-stacks/issues/15#issuecomment-399759691

role: ${env:IAM_ROLE} vpc: securityGroupIds:

plugins:

package: individually: true excludeDevDependencies: true

custom: splitStacks: perFunction: false perType: true perGroupFunction: false serverless-offline: port: ${env:PROJECT_PORT} migrationsPath: './migrations' webpack: packager: npm webpackConfig: build/webpack.config.js # https://github.com/serverless-heaven/serverless-webpack/issues/289 includeModules: forceExclude:

This is my configuration. When I run "sls migrations up", I get this error "SequelizeConnectionError: read ECONNRESET". What's wrong with my script?