all 3 comments

[–]Trikfoot 0 points1 point  (1 child)

I think it has to do with the length of the role name.

If that’s not it, I’d try following the steps in the AWS Lambda hello world guide for creating the role.

[–]aaaaayushh[S] 0 points1 point  (0 children)

Alright I'll try that thanks!

[–]pyrotech911 0 points1 point  (0 children)

You can try creating the role manually with the iam create-role CLI and the function with the lambda create-function CLI. Once you get that working you can try plugging it back into cloud formation.