iam-inline-policy-blocked-kms-actions
Checks if the inline policies attached to your IAM users, roles, and groups do not allow blocked actions on all Amazon KMS keys. The rule is NON_COMPLIANT if any blocked action is allowed on all Amazon KMS keys in an inline policy.
Note
If a single value in an inline IAM policy (for example, one Resource or Condition value) contains more than five IAM policy variables, the rule can't evaluate that policy and returns NON_COMPLIANT, even if the policy would otherwise be compliant. To get an accurate evaluation, split any value that contains more than five policy variables so that each value contains five or fewer.
Because all inline policies attached to a user, group, or role are evaluated together, a single inline policy that exceeds this limit causes the rule to return NON_COMPLIANT for that user, group, or role.
Identifier: IAM_INLINE_POLICY_BLOCKED_KMS_ACTIONS
Resource Types: AWS::IAM::Group, AWS::IAM::Role, AWS::IAM::User
Trigger type: Configuration changes
Amazon Web Services Region: All supported Amazon regions except Asia Pacific (New Zealand), Asia Pacific (Thailand), Middle East (UAE), Asia Pacific (Hyderabad), Asia Pacific (Malaysia), Asia Pacific (Melbourne), Mexico (Central), Israel (Tel Aviv), Asia Pacific (Taipei), Canada West (Calgary), Europe (Spain), Europe (Zurich) Region
Parameters:
- blockedActionsPatterns
- Type: CSV
-
Comma-separated list of blocked KMS action patterns, for example, kms:*, kms:Decrypt, kms:ReEncrypt*.
- excludeRoleByManagementAccount (Optional)
- Type: boolean
-
Exclude a role if it is only assumable by organization management account.
Amazon CloudFormation template
To create Amazon Config managed rules with Amazon CloudFormation templates, see Creating Amazon Config Managed Rules With Amazon CloudFormation Templates.