If you no longer need to use the AWS Load Balancer Operator, you can remove the Operator and delete any related roles and policies.
Procedure
-
Delete the Operator Subscription:
$ oc delete subscription aws-load-balancer-operator -n aws-load-balancer-operator -
Detach and delete the relevant AWS IAM roles:
$ aws iam detach-role-policy \ --role-name "<cluster_id>-alb-operator" \ --policy-arn <operator_policy_arn>$ aws iam delete-role \ --role-name "<cluster_id>-alb-operator" -
Delete the AWS IAM policy:
$ aws iam delete-policy --policy-arn <operator_policy_arn>