Skip to content

Commit bb5d9a7

Browse files
committed
Update aws_cleanup.sh.tmpl
1 parent cee9936 commit bb5d9a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/aws/jumpbox/aws_cleanup.sh.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ export VPC_ID="${vpc_id}"
66
echo 'Destroying K8s ELBs...'
77
for elb in $(aws elb describe-load-balancers --region $REGION --query 'LoadBalancerDescriptions[?VPCId=="$VPC_ID"]|[].LoadBalancerName' --output text);do echo "Removing $elb..."; aws elb delete-load-balancer --region $REGION --load-balancer-name $elb; done
88

9-
echo 'Destroying K8s NLB SGs...'
9+
sleep 60
10+
11+
echo 'Destroying K8s ELB SGs...'
1012
for sg in $(aws ec2 --region $REGION describe-security-groups --filters "Name=vpc-id,Values=$VPC_ID" --query "SecurityGroups[*].GroupId" --output text); do echo "Removing $sg..."; aws ec2 delete-security-group --region $REGION --group-id $sg; done

0 commit comments

Comments
 (0)