title: The role defined for the function cannot be assumed by Lambda
body: <p>I'm getting the error "The role defined for the function cannot be assumed by Lambda" when I'm trying to create a lambda function with create-function command.</p>
  
  <blockquote>
    <p>aws lambda create-function<br>
    --region us-west-2<br>
    --function-name HelloPython<br>
    --zip-file fileb://hello_python.zip<br>
    --role arn:aws:iam::my-acc-account-id:role/default<br>
    --handler hello_python.my_handler<br>
    --runtime python2.7<br>
    --timeout 15<br>
    --memory-size 512</p>
  </blockquote>