IAM groups should not have inline policies attached

Description

IAM policies are rules that define the level of access granted to AWS resources. These policies can either be managed (reusable and centrally administered) or inline (embedded directly into a user, group, or role). It is a best practice to avoid using inline policies for IAM groups and instead attach managed policies. Using managed policies for IAM groups offers better manageability and reduces the complexity of policy administration. It ensures consistency in access management, provides an easier mechanism for policy updates, and simplifies auditing and compliance.

Remediation

From the console

See the Managed policies and inline policies documentation for console remediation steps.