Ensure that Lambda Function execution role policy doesn't have an overly permissive scope (Contains a wildcard)

Determine the specific resource scope needed by your Lambda Functions, and then craft IAM policies for these resources only, instead of full resource scope. Please note, there are few actions where Resource type is accepted as wildcard only, this rule is not applicable to those actions which only support Wildcard '*' as resource type. Pls follow this AWS documentation link for more details: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html