From 9e05ffafadd28cde9e7e8492eb939252fff43c55 Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Sun, 11 Sep 2016 07:06:48 -0700 Subject: [PATCH] update cleanup guide --- docs/10-cleanup.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/10-cleanup.md b/docs/10-cleanup.md index f0bc11b..d59006a 100644 --- a/docs/10-cleanup.md +++ b/docs/10-cleanup.md @@ -120,19 +120,6 @@ aws elb delete-load-balancer \ --load-balancer-name kubernetes ``` -#### Security Groups - -``` -SECURITY_GROUP_ID=$(aws ec2 describe-security-groups \ - --filters "Name=tag:Name,Values=kubernetes" | \ - jq -r '.SecurityGroups[].GroupId') -``` - -``` -aws ec2 delete-security-group \ - --group-id ${SECURITY_GROUP_ID} -``` - #### Internet Gateways ``` @@ -158,6 +145,19 @@ aws ec2 delete-internet-gateway \ --internet-gateway-id ${INTERNET_GATEWAY_ID} ``` +#### Security Groups + +``` +SECURITY_GROUP_ID=$(aws ec2 describe-security-groups \ + --filters "Name=tag:Name,Values=kubernetes" | \ + jq -r '.SecurityGroups[].GroupId') +``` + +``` +aws ec2 delete-security-group \ + --group-id ${SECURITY_GROUP_ID} +``` + #### Subnets ```