From dc8353c464f178b9dde849a9555c06feecdc6aac Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Tue, 17 Dec 2024 13:29:53 +0530 Subject: [PATCH] unused aws instace and vpcs cleanup Signed-off-by: shiva kumar --- scripts/awsvpcscleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/awsvpcscleanup.sh b/scripts/awsvpcscleanup.sh index 04ce69e0..1d7049b0 100755 --- a/scripts/awsvpcscleanup.sh +++ b/scripts/awsvpcscleanup.sh @@ -42,7 +42,7 @@ done # Detach and Delete Security Groups security_groups=$(aws ec2 describe-security-groups \ - --filters Name=vpc-id,Values=$vpc_id \ + --filters Name=vpc-id,Values=$vpc \ --query "SecurityGroups[?GroupName!='default'].GroupId" \ --output text | tr -d '\r' | tr '\n' ' ')