Example #1
0
 lambda.deleteAlias({'FunctionName': functionArn, Name: alias}, function() {
     lambda.createAlias(aliasParams, function (err) {
         if (err) {
             reject(err);
         } else {
             resolve();
         }
     });
 });
        aliases.push(function(callback) {
          let params = {
            FunctionName: fn.functionName,
            FunctionVersion: '$LATEST',
            Name: stage,
            Description: `${fn.description} on ${stage}`
          }

          lambda.createAlias(params, callback)
        })