             Timeout:      config.Timeout,
             Code:         {ZipFile: zipBody},
           }
-          console.log(JSON.stringify({createFunctionParam: createFunctionParam}, null, 2))
+          # console.log(JSON.stringify({createFunctionParam: createFunctionParam}, null, 2))
           updateFunctionConfigurationParam = {
             FunctionName: config.FunctionName,
             Description:  config.Description,

            MemorySize:   config.MemorySize,
            Timeout:      config.Timeout,
          }
          console.log(JSON.stringify({updateFunctionConfigurationParam: updateFunctionConfigurationParam}, null, 2))
          updateFunctionCodeParam = {
            FunctionName: config.FunctionName,
            ZipFile:      zipBody,
          }
          console.log(JSON.stringify({updateFunctionCodeParam: updateFunctionCodeParam}, null, 2))

          return lambda.createFunction(createFunctionParam)
            .then (result)->
              console.log "created"
              return Promise.resolve(result)
            .catch (result)->
              if result?.error?.statusCode == 409 # Function already exist
                console.log result.error.statusCode
                return lambda.updateFunctionConfiguration(updateFunctionConfigurationParam)
                  .then (result)->
                    return lambda.updateFunctionCode(updateFunctionCodeParam)
              else
                return Promise.reject(result)
        .then (result)->
          # console.log(JSON.stringify({then: result}, null, 2))
          console.log({then: result})
          # callback()
        .catch (result)->
          # console.log(JSON.stringify({catch: result}, null, 2))
          console.log({catch: result})
          console.log(result.stack) if result?.stack?
          # callback(result)


    # TODO: 「lambduh-gulp」に依存しないように修正する。
    lambduhGulp(gulp)


    gulp.task "deploy-to-aws-lambda", (callback)->
      config = require(path.join(process.cwd(), "lambda-config.js"))
      # console.log(JSON.stringify({config: config}, null, 2))
      lambda = new LambdaWrapper(region: config.Region)

      console.log "Loading zip file..."
      FsWrapper.readFile("./out.zip")
        .then (result)->
          zipBody = result.body
