You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# IAM role and polcies are AWS Account specific, so need to clean them up if any from previous run
42
35
echo"detach IAM policy if it exists"
43
36
aws iam detach-role-policy --role-name $ROLE_NAME --policy-arn arn:${AWS_PARTITION}:iam::$ACCOUNT_ID:policy/AWSLoadBalancerControllerIAMPolicy ||true
@@ -104,9 +97,6 @@ cat <<EOF > trust.json
104
97
}
105
98
EOF
106
99
107
-
echo"cleanup any stale resources from previous run"
108
-
cleanUp
109
-
110
100
echo"create Role with above policy document"
111
101
aws iam create-role --role-name $ROLE_NAME --assume-role-policy-document file://trust.json --description "IAM Role to be used by aws-load-balancer-controller SA"||true
0 commit comments