We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e72b10a commit fec7cf2Copy full SHA for fec7cf2
aws/kill_instances.sh
@@ -14,7 +14,7 @@ if [ -z "$ACC" ]; then
14
exit 1
15
fi
16
17
-init_ec2_env $ACCOUNT
+init_ec2_env $ACC
18
19
# go through each running instance
20
for id in `ec2-describe-instances | grep "^INSTANCE" | cut -f 2` ;do
@@ -23,7 +23,7 @@ for id in `ec2-describe-instances | grep "^INSTANCE" | cut -f 2` ;do
23
# check for a tag
24
ec2-describe-instances | grep "^TAG" | grep "$id" | grep "persist"
25
if [ $? != 0 ]; then
26
- echo "killing instance $id"
+ echo "killing instance $id in account $ACC"
27
ec2-terminate-instances $id
28
29
0 commit comments