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
error="+++ Cannot update a service to add a load balancer. First delete the service and then run again, or rename the service to force a new one to be created"
121
+
error="+++ ^^^
122
+
+++ Cannot update a service to add/remove a load balancer. First delete the service and then run again, or rename the service to force a new one to be created"
111
123
112
124
# No easy way to tell if the target group has changed, since describe-services only returns the load balancer name
113
-
if [[ "$lb_config"=="null" ]] && [[ -n$target_group ]];then
114
-
echo"$error"
115
-
exit 1
125
+
if [[ "$lb_config"=="null" ]];then
126
+
if [[ -n"$target_group" ]] || [[ -n"$load_balancer_name" ]];then
127
+
echo"$error"
128
+
exit 1
129
+
fi
116
130
fi
117
131
118
132
if [[ "$lb_config"=="null" ]];then
@@ -121,6 +135,12 @@ if [[ "$lb_config" == "null" ]]; then
0 commit comments