We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee9936 commit bb5d9a7Copy full SHA for bb5d9a7
modules/aws/jumpbox/aws_cleanup.sh.tmpl
@@ -6,5 +6,7 @@ export VPC_ID="${vpc_id}"
6
echo 'Destroying K8s ELBs...'
7
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
8
9
-echo 'Destroying K8s NLB SGs...'
+sleep 60
10
+
11
+echo 'Destroying K8s ELB SGs...'
12
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