iam-policy-no-statements-with-full-access - Amazon Config
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

iam-policy-no-statements-with-full-access

Checks if Amazon Identity and Access Management (IAM) policies that you create grant permissions to all actions on individual Amazon resources. The rule is NON_COMPLIANT if any customer managed IAM policy allows full access to at least 1 Amazon service.

Context: Following the principle of least privilege, it is recommended to limit the permitted actions in your IAM policies when granting permissions to Amazon services. This approach helps ensure that you only grant the necessary permissions by specifying the exact actions required, avoiding the use of unrestricted wildcards for a service, such as ec2:*.

In some cases, you might want to permit multiple actions with a similar prefix, such as DescribeFlowLogs and DescribeAvailabilityZones. In these cases, you can add a suffixed wildcard to the common prefix (for example, ec2:Describe*). Grouping related actions can help avoid hitting IAM policy size limits.

This rule will return COMPLIANT if you use prefixed actions with a suffixed wildcard (for example, ec2:Describe*). This rule will only return NON_COMPLIANT if you use unrestricted wildcards (for example, ec2:*).

Note

This rule only evaluates customer managed policies. This rule does NOT evaluate inline policies or Amazon managed policies. For more information on the difference, see Managed policies and inline policies in the IAM User Guide.

Identifier: IAM_POLICY_NO_STATEMENTS_WITH_FULL_ACCESS

Resource Types: AWS::IAM::Policy

Trigger type: Configuration changes

Amazon Web Services Region: All supported Amazon regions except US ISO West (Northern California), Middle East (UAE), Asia Pacific (Hyderabad), Asia Pacific (Osaka), Asia Pacific (Malaysia), Asia Pacific (Melbourne), Israel (Tel Aviv), Canada West (Calgary), Europe (Spain), Europe (Zurich) Region

Parameters:

excludePermissionBoundaryPolicy (Optional)
Type: boolean

Boolean flag to exclude the evaluation of IAM policies used as permissions boundaries. If set to 'true', the rule will not include permissions boundaries in the evaluation. Otherwise, all IAM policies in scope are evaluated when value is set to 'false.' Default value is 'false'.

Amazon CloudFormation template

To create Amazon Config managed rules with Amazon CloudFormation templates, see Creating Amazon Config Managed Rules With Amazon CloudFormation Templates.