Skip to content
IAM Policy Generator

IAM policy example: administer KMS keys without using them, with a least privilege rewrite

Allows a key administrator to create, describe, tag and schedule deletion of keys, and to manage aliases, without the cryptographic actions that read data. The AWS key policy guidance splits administrators from users. The original adds kms:Decrypt, which gives access to protected data.

Open the workbench ยท All examples

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Admin",
      "Effect": "Allow",
      "Action": [
        "kms:Create*",
        "kms:Describe*",
        "kms:Enable*",
        "kms:List*",
        "kms:Put*",
        "kms:Update*",
        "kms:Revoke*",
        "kms:Disable*",
        "kms:Get*",
        "kms:Delete*",
        "kms:TagResource",
        "kms:UntagResource",
        "kms:ScheduleKeyDeletion",
        "kms:CancelKeyDeletion",
        "kms:Decrypt"
      ],
      "Resource": "*"
    }
  ]
}

What it allows

  • Allows key management actions on all keys and also decrypting data with any key.

What it allows

  1. Allow 36 actions (kms:Create*, kms:Describe*, kms:Enable*, kms:List*, kms:Put*, kms:Update*, kms:Revoke*, kms:Disable*, kms:Get*, kms:Delete*, kms:TagResource, kms:UntagResource, kms:ScheduleKeyDeletion, kms:CancelKeyDeletion, kms:Decrypt) on every resource.

    Action or patternActionsAccess levels
    kms:Create*4Write 3, Permissions management 1
    kms:Describe*2Read 2
    kms:Enable*2Write 2
    kms:List*7List 7
    kms:Put*1Permissions management 1
    kms:Update*4Write 4
    kms:Revoke*1Permissions management 1
    kms:Disable*2Write 2
    kms:Get*5Read 5
    kms:Delete*3Write 3
    kms:TagResource1Tagging 1
    kms:UntagResource1Tagging 1
    kms:ScheduleKeyDeletion1Write 1
    kms:CancelKeyDeletion1Write 1
    kms:Decrypt1Write 1

Checks

The administrator can decrypt data, so administration and data access are not separated. The wildcards cover 4, 1 and 4 actions.

Least privilege rewrite

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Admin",
      "Effect": "Allow",
      "Action": [
        "kms:Create*",
        "kms:Describe*",
        "kms:Enable*",
        "kms:List*",
        "kms:Put*",
        "kms:Update*",
        "kms:Revoke*",
        "kms:Disable*",
        "kms:Get*",
        "kms:Delete*",
        "kms:TagResource",
        "kms:UntagResource",
        "kms:ScheduleKeyDeletion",
        "kms:CancelKeyDeletion"
      ],
      "Resource": "*"
    }
  ]
}

The rewrite removes kms:Decrypt. The administrator manages keys but cannot decrypt data unless a separate statement grants it.

What it allows

  1. Allow 35 actions (kms:Create*, kms:Describe*, kms:Enable*, kms:List*, kms:Put*, kms:Update*, kms:Revoke*, kms:Disable*, kms:Get*, kms:Delete*, kms:TagResource, kms:UntagResource, kms:ScheduleKeyDeletion, kms:CancelKeyDeletion) on every resource.

    Action or patternActionsAccess levels
    kms:Create*4Write 3, Permissions management 1
    kms:Describe*2Read 2
    kms:Enable*2Write 2
    kms:List*7List 7
    kms:Put*1Permissions management 1
    kms:Update*4Write 4
    kms:Revoke*1Permissions management 1
    kms:Disable*2Write 2
    kms:Get*5Read 5
    kms:Delete*3Write 3
    kms:TagResource1Tagging 1
    kms:UntagResource1Tagging 1
    kms:ScheduleKeyDeletion1Write 1
    kms:CancelKeyDeletion1Write 1

Checks

Sources

  1. AWS KMS Developer Guide: default key policy, read 16 Nov 2026
  2. AWS KMS Developer Guide: key policies, read 16 Nov 2026
  3. AWS Service Authorization Reference, programmatic access (fetched 16 Nov 2026), read 16 Nov 2026

Last reviewed 16 Nov 2026.