IAM policy should avoid use of wildcards and instead apply the principle of least privilege
aws-iam-no-policy-wildcards Legacy ID:
You should use the principle of least privilege when defining your IAM policies. This means you should specify each exact permission required without using wildcards, as this could cause the granting of access to certain undesired actions, resources and principals.
Overly permissive policies may grant access to sensitive resources
Specify the exact permissions required, and to which resources they should apply instead of using wildcards.
The following example will fail the aws-iam-no-policy-wildcards check.
The following example will pass the aws-iam-no-policy-wildcards check.