concept claudia update in category node

appears as: claudia update
Serverless Applications with Node.js

This is an excerpt from Manning's book Serverless Applications with Node.js.

Because of the claudia.json file, the claudia update command knows exactly which Lambda function the files are deployed to. The command can be customized with a --config flag. For more information, see the official documentation at https://github.com/claudiajs/claudia/blob/master/docs/update.md.

Listing 2.7 The printed information after running the claudia update command
{
  "FunctionName": "pizza-api",    #1  
  "Runtime": "nodejs6.10",    #2  
  "Timeout": 3,    #3  
  "MemorySize": 128,    #4  
  "Version": "2",    #5  
  "url": "https://whpcvzntil.execute-api.eu-central-1.amazonaws.com/chapter2_2",    #6  
  "LastModified": "2017-07-15T14:48:56.540+0000",
  "CodeSha256": "0qhstkwwkQ4aEFSXhxV/zdiiS1JUIbwyKOpBup35l9M=",
  // Additional metadata
}

  #1   The name of your AWS Lambda function
  #2   The Node.js runtime used to run the code
  #3   The function timeout (in seconds)
  #4   The maximum amount of memory your function can use
  #5   The deployment version
  #6   Your API’s base URL

After the small detour into the world of promises, run claudia update again from your pizza-api folder and deploy the code. In less than a minute, you’ll be able to test your API and see if it works.