serverless: the hello world 'serverless deploy' deployment fails

Bug Report

Template does not deploy successfully.

$ serverless create --template aws-python --path hello-world $ cd hello-world $ serverless deploy

Description

the hello world ‘serverless deploy’ deployment fails

Stack trace

Serverless: Creating Stack… Serverless: Checking Stack create progress… … Serverless: Stack create finished… Serverless: Packaging service… Serverless: Uploading CloudFormation file to S3… Serverless: Uploading service .zip file to S3… Serverless: Updating Stack… Serverless: Checking Stack update progress… …Serverless: Deployment failed!

Serverless Error ---------------------------------------

 An error occurred while provisioning your stack: HelloLambdaFunction
 - The role defined for the function cannot be assumed
 by Lambda..

Additional Data

  • _Serverless Framework Version you’re using_: 1.0.0-rc.2
  • _Operating System_: Mac OS X Version 10.11.6

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Sorry, i made this mistake. I was running one folder behind of serverless.yml location. Thanks !!!

Sorry, i made this mistake. I was running one folder behind of serverless.yml location. Thanks !!!

No worries! Glad to hear that the issue has been resolved.

The next Serverless release will include a fix with a warning message which shows you that you’re not in the correct directory.

@VisheshMad thank you for your comment.

Could you please share the whole error message you get and the config you’ve used (including the Framework and Node version)? 👍

Are you running the command in the service directory where the serverless.yml file is located?

Thanks in advance.

@flomotlik @bder While I was getting this error yesterday, I have not changed anything but the error has gone away. Maybe it was something on AWS’s side?