Sometime status role has been removed, but it kept on retrying deletion.
2024-03-29T17:44:30.526Z
INFO
Iamrole
delete request
2024-03-29T17:44:30.526Z
2024-03-29T17:44: 30.526Z
DEBUG
Initiating api call
{" roleName":
ERROR
Unable to list attached managed policies for role
{roleName":“",“error":“InvalidParameter: 1 val idation error(s) found.in- minimum field size of 1, ListAttachedRolePol iciesInput.RoleName.Mn"}
sigs.k8s.io/controller-runtime/pkg/internal/controllen.(*Contnollen) reconcileHandler
/go/pkg/mod/sigs.k8s.io/controller-runtime@0.9.7/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller)-processNextWorkItem
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214
2024-03-29T17:44:30.526Z
ERROR
Unable to delete the role
{"ennon":
"Inval idParameter: 1 val idation error(s) found. Sn- minimum field size of 1, ListAttachedRolePol iciesInput.RoleName.Mn"}
Skip call aws deletion if rolename is not present as it has been deleted already.
close #
Could you share the solution in high level?
Could you share the test results?