Skip to content

Commit

Permalink
change order again
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 8, 2021
1 parent cad0613 commit d3d5759
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions vpc-remove-defaults/templates/delete-defaults.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,6 @@ else
echo "# skipping delete igw, missing"
fi

if [ ! -z "${network_acl}" ]
then
echo "# aws --profile ${profile} --region ${region} ec2 delete-network-acl --network-acl-id ${network_acl} $DRYRUN"
aws --profile ${profile} --region ${region} ec2 delete-network-acl --network-acl-id ${network_acl} $DRYRUN
else
echo "# skipping delete network_acl, missing"
fi

if [ ! -z "${route_table}" ]
then
echo "# aws --profile ${profile} --region ${region} ec2 delete-route-table --route-table-id ${route_table} $DRYRUN"
aws --profile ${profile} --region ${region} ec2 delete-route-table --route-table-id ${route_table} $DRYRUN
else
echo "# skipping delete route_table, missing"
fi

if [ ! -z "${vpc}" ]
then
echo "# aws --profile ${profile} --region ${region} ec2 delete-vpc --vpc-id ${vpc} $DRYRUN"
Expand All @@ -88,4 +72,20 @@ else
echo "# skipping delete dhcp_options, missing"
fi

if [ ! -z "${network_acl}" ]
then
echo "# aws --profile ${profile} --region ${region} ec2 delete-network-acl --network-acl-id ${network_acl} $DRYRUN"
aws --profile ${profile} --region ${region} ec2 delete-network-acl --network-acl-id ${network_acl} $DRYRUN
else
echo "# skipping delete network_acl, missing"
fi

if [ ! -z "${route_table}" ]
then
echo "# aws --profile ${profile} --region ${region} ec2 delete-route-table --route-table-id ${route_table} $DRYRUN"
aws --profile ${profile} --region ${region} ec2 delete-route-table --route-table-id ${route_table} $DRYRUN
else
echo "# skipping delete route_table, missing"
fi

exit 0

0 comments on commit d3d5759

Please sign in to comment.