title: ServerlessError: The "key" argument must be one of type Buffer, TypedArray, DataView, string, or KeyObject. Received type undefined
body: <p>I have an issue with serverless.</p>
  
  <p>I created a simple template with this command line :</p>
  
  <blockquote>
    <p>serverless create --template aws-nodejs</p>
  </blockquote>
  
  <p>then i run the commande line to deploy the serverless,</p>
  
  <blockquote>
    <p>serverless deploy -v</p>
  </blockquote>
  
  <p>but i receive this error :</p>
  
  <pre><code>Serverless: Packaging service...
  Serverless: Excluding development dependencies...
  
    Serverless Error ---------------------------------------
  
    ServerlessError: The "key" argument must be one of type Buffer, TypedArray, DataView, string, or KeyObject. Received type undefined
  
    Get Support --------------------------------------------
       Docs:          docs.serverless.com
       Bugs:          github.com/serverless/serverless/issues
       Issues:        forum.serverless.com
  
    Your Environment Information -----------------------------
       OS:                     linux
       Node Version:           11.11.0
       Serverless Version:     1.38.0
  </code></pre>
  
  <p>I don't understand why it can't deploy my lambda function ?</p>