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' ' ')