Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SequelizeConnectionError #17

Open
crazydev901 opened this issue Jun 26, 2020 · 0 comments
Open

SequelizeConnectionError #17

crazydev901 opened this issue Jun 26, 2020 · 0 comments

Comments

@crazydev901
Copy link

crazydev901 commented Jun 26, 2020

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 # dougmoscrop/serverless-plugin-split-stacks#15 (comment)

role: ${env:IAM_ROLE}
vpc:
securityGroupIds:
- ${env:SecurityGroupId}
subnetIds:
- ${env:SubnetId1}
- ${env:SubnetId2}
- ${env:SubnetId3}
- ${env:SubnetId4}
- ${env:SubnetId5}
- ${env:SubnetId6}
environment:
STAGE: ${env:SLS_STAGE}
NODE_ENV: ${env:NODE_ENV}
DB_DIALECT: ${env:DB_DIALECT}
DB_NAME: ${env:DB_NAME}
DB_USERNAME: ${env:DB_USERNAME}
DB_PASSWORD: ${env:DB_PASSWORD}
DB_HOST: ${env:DB_HOST}
DB_PORT: ${env:DB_PORT}

plugins:

  • serverless-webpack
  • serverless-plugin-split-stacks
  • serverless-offline
  • serverless-sequelize-migrations

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 # serverless-heaven/serverless-webpack#289
includeModules:
forceExclude:
- "aws-sdk"

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant