AWS – SAM Create a generic role and attach to all lambdas

Here, we will create an IAM role in the SAM template and attach it to lambda functions. How to create