From cb988a3a932840c3b1860e6120a587ca36d19952 Mon Sep 17 00:00:00 2001 From: Dan Mace Date: Tue, 30 Jun 2026 16:40:37 -0400 Subject: [PATCH] fix(cli): Add missing CLI IAM role policy entry Before this commit, clusters created via the CLI with `--sts-creds` couldn't be fully deleted due to a missing `iam:ListRolePolicies` policy entry, preventing IAM role cleanup. This commit corrects the policy so all IAM resources created by the CLI flow can be deleted. Fixes OCPBUGS-94238 --- cmd/infra/aws/create_cli_role.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/infra/aws/create_cli_role.go b/cmd/infra/aws/create_cli_role.go index 6de1b3246705..78d402c3c851 100644 --- a/cmd/infra/aws/create_cli_role.go +++ b/cmd/infra/aws/create_cli_role.go @@ -118,6 +118,7 @@ const ( "iam:DeleteOpenIDConnectProvider", "iam:GetRolePolicy", "iam:ListAttachedRolePolicies", + "iam:ListRolePolicies", "iam:DetachRolePolicy" ], "Resource": "*"