This policy requires an MFA prompt in order to escalate privilege to run administrative commands on my Kubernetes cluster.
In this case, I require that the user is part of the strong DM prod EKS DevOps role, and the Kubernetes group that will be impersonated is SDM DevOps.
Let's go ahead and list out all of the pods in our cluster.
The pod we wanna destroy is this engine X pod.
Let's go ahead and attempt to delete it.
I don't have permissions because I am not in that Kubernetes group.
Let's go ahead and rerun this command with elevated privileges.
I'm being prompted for an MFA on my mobile device. I'm gonna hit approve.
The pod is now deleted.