/serverless-loggroup-test

Example for serverless issue #2614

Primary LanguageJavaScript

Serverless 1.5.1 Error

There error in question is discussed here: serverless/serverless#2614

Using serverless 1.5.1:

npm install serverless@1.5.1 -g

Then:

sls deploy --verbose

Will throw an error that says:

  Serverless Error ---------------------------------------
 
     An error occurred while provisioning your stack: IamPolicyLambdaExecution
     - Template error: LogGroup /aws/lambda/loggroup-test-dev-checkSomething
     doesn't exist.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
 
  Your Environment Information -----------------------------
     OS:                 darwin
     Node Version:       4.5.0
     Serverless Version: 1.5.1

If you comment out:

#  ab:
#    handler: handler.b

It works...

If change the function name:

  b:
    handler: handler.b

It works...