@@ -77,7 +77,9 @@ function _createFromInlinedFunction() {
         return _resolvePathFromParent(d);
     });
 
-    return _lambdaHelper.getCloudedFunctionFromFunction(arguments[0], resolvedDeps, arguments[2]);
+    var config = arguments[2] || {};
+
+    return _lambdaHelper.getCloudedFunctionFromFunction(arguments[0], resolvedDeps, config);
 };
 
 function _createFromModule() {
@@ -90,11 +92,11 @@ function _createFromModule() {
     if(typeof(arguments[1]) === 'string') {
         handlerName = arguments[1];
         deps = arguments[2] || [];
-        configs = arguments[3];
+        configs = arguments[3] || {};
     } else {
         handlerName = null;
         deps = arguments[1] || [];
-        configs = arguments[2];
+        configs = arguments[2] || {};
     }
 
     _injectAwsSdkIntoDeps(deps);