Menu

1 / 2

OCI Wouldn't Let Me Delete My KMS Keys — So I Stopped Trying to Delete Them

DEV Community·Munagala Karthik·6 months ago
#DcN6NvOO
#devops#oci#cloudsecurity#software#delete
Reading 0:00
15s threshold

The obvious solution is not always the right one.

When we hit a problem in OCI where KMS keys were refusing to delete; the obvious move was to force delete them. Try harder. Debug the script. Fix the error.

We tried that. It kept failing.

So we stopped and asked a different question.

What if we stop trying to delete them where they are; and move them somewhere else first?

We wrote a script that moves the keys to a separate isolated compartment. No active resources. No dependencies. Clean environment. Then we delete them there.

It worked immediately.

Same problem. Different angle. Completely different result.

This is something I keep learning over and over in cloud engineering. When something is not working; the answer is rarely to push harder in the same direction. Sometimes you need to zoom out; question your assumptions and ask what else is possible.

The cloud does not always behave the way you expect.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.