I realize this is an old thread, but Google leads here and the last proposed solution does not work. It still results in a CF error:
Error: The CloudFormation template is invalid: Template error: instance of Fn::GetAtt references undefined resource IamRoleLambdaExecution