I ve been trying to deploy my GraphQl Apollo Server with nodejs on a Lambda function, on serverless offline it works perfectly, when i try to deploy it it fails with the error: 
"Recoverable error occurred (write ECONNRESET), sleeping for ~5 seconds. Try 1 of 4"
 Once the error appears, the console exits the proccess with no other message
Once the error appears, the console exits the proccess with no other message
I'm using Typescript and Webpack
What i ve done already:
yml file:
service: apollo-sever-kisbel
custom:
  webpack:
    webpackConfig: ./webpack.config.js
    includeModules: true
plugins:
  - serverless-webpack
  - serverless-offline
provider:
  name: aws
  runtime: nodejs12.x
  stage: dev
functions:
  graphql:
    handler: lib/index.graphqlHandler
    events:
      - http:
          path: "{proxy+}"
          method: any
          cors: true
Cheers!
If you have network issues with serverless you can export the AWS variable in your CLI to increase the default timeout export AWS_CLIENT_TIMEOUT=360000
Hope this help you in the future ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With