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.
I got this problem while testing lambda function.
What worked for me was formatting JSON.