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 ```