Skip to content

Locked out of KMS keys: key policy denies PutKeyPolicy and ScheduleKeyDeletion to all principals

0

Hello AWS Community / AWS Support Staff,

I'm posting here as a last resort. I'm the account owner, and I'm locked out of customer-managed KMS keys left behind by an abandoned test deployment. They keep generating charges, and I have no way to delete them myself.

Each key policy has an explicit Deny for all principals that blocks kms:ScheduleKeyDeletion and kms:PutKeyPolicy. Not even the root user can delete the keys or fix the policy. As I understand it, only AWS Support can restore administrative access.

Case details:

Date opened: September 14, 2026 Current status: Unassigned (17 days)

What I've already tried:

Root user: AccessDeniedException due to the explicit Deny in the key policy Adding IAM permissions: no effect against a resource-policy Deny Adding correspondence to the case on September 24 to request an update: no response

Could an AWS Community Manager or Support team member please escalate this internally to the KMS team? I can provide the case ID and any account verification needed via direct message.

Thank you for your help!

2 Answers
0

Your understanding is correct. If the KMS key policy contains an explicit Deny for kms:PutKeyPolicy and kms:ScheduleKeyDeletion that applies to all principals, adding IAM permissions or using the root user won't override it.

KMS permissions are evaluated with the key policy, IAM policies, grants, etc., and an explicit deny takes precedence. AWS also notes that KMS keys can become unmanageable if the key policy no longer leaves any principal with permission to update it.

In this situation, there isn't an IAM or CLI workaround you can apply from the account. AWS documentation specifically says that when a KMS key becomes unmanageable, you must contact AWS Support to regain access.

So I would keep the existing Support case and ask specifically for escalation to the AWS KMS service team for key-policy lockout recovery. Include:

  • Key ARN(s) and Region(s)
  • The relevant Deny statement
  • The exact AccessDeniedException
  • Confirmation that you're the account owner/root user
  • That the keys are unused test resources and are continuing to generate cost

I wouldn't post the Support case ID publicly on re:Post. Provide it only through an AWS Support/private channel if an AWS employee asks for it.

For future keys, avoid an unconditional deny on kms:PutKeyPolicy. KMS has a policy-lockout safety mechanism specifically to reduce the chance of creating an unmanageable key.

answered a month ago

EXPERT

reviewed 5 days ago

0

Hi,

I'm so sorry for the concern this has caused. While we're unable to action your case, we have shared your requests with our teams. Keep an eye on your case for updates.

- Sage A.

AWS
EXPERT

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.