|
@@ -0,0 +1,45 @@
|
|
|
+#! /bin/bash
|
|
|
+# 2016-02-25 FTD
|
|
|
+#
|
|
|
+# Starts these instances. Note that the instances should be stopped via salt.
|
|
|
+#
|
|
|
+# Note the weird syntax `# (Machinename)` is just to allow per-line comments
|
|
|
+
|
|
|
+# Edit ~/.aws/credentials and include a section [fedcloud] with a valid key
|
|
|
+PROFILE=fedcloud
|
|
|
+
|
|
|
+# Format output into json, text, or table
|
|
|
+OUTPUTFORMAT=text
|
|
|
+
|
|
|
+# Fed is in us-west-2, but in case you want to extend this in the future
|
|
|
+REGION=us-west-2
|
|
|
+
|
|
|
+SERVERS=(
|
|
|
+ i-8c9e6b86 # (AMSFED1LARMS1)
|
|
|
+ i-1a51b3ed # (AMSFED1LBBA1)
|
|
|
+ i-bead4049 # (AMSFED1LBBDB1)
|
|
|
+ i-d40d5a1d # (AMSFED1LCFG1)
|
|
|
+ i-48e78747 # (AMSFED1LDSS1)
|
|
|
+ i-a8ad405f # (AMSFED1LHCA1)
|
|
|
+ i-4a8a67bd # (AMSFED1LHCDB1)
|
|
|
+ i-061c4acf # (AMSFED1LIDCON1)
|
|
|
+ i-451d4b8c # (AMSFED1LIDDB1)
|
|
|
+ i-e4cc2d13 # (AMSFED1LIDPORT1)
|
|
|
+ i-f984690e # (AMSFED1LMSC1)
|
|
|
+ i-2bf47d24 # (AMSFED1LNAG1)
|
|
|
+ i-47bf864c # (AMSFED1LNAT1)
|
|
|
+ i-7fb93070 # (AMSFED1LPFIX1)
|
|
|
+ i-c07b5bcf # (AMSFED1LSPLKIDX1)
|
|
|
+ i-c68b56cc # (AMSFED1LSPLKIDX2)
|
|
|
+ i-f37858fc # (AMSFED1LSPLKMN)
|
|
|
+ i-f7c947f8 # (AMSFED1LSPLKSH)
|
|
|
+ i-713a887e # (AMSFED1WDC1)
|
|
|
+ i-9f8d8b94 # (AMSFED1WDC2)
|
|
|
+ i-462e7f8f # (AMSFED1WEPO1)
|
|
|
+ i-b89213b7 # (AMSFED1WSSA1)
|
|
|
+ i-af41cca0 # (AMSFED1WSSDB1)
|
|
|
+ i-ec8ce1e3 # (AMSFED2LVPNAS1)
|
|
|
+)
|
|
|
+
|
|
|
+aws ec2 --profile $PROFILE --output $OUTPUTFORMAT --region $REGION start-instances --instance-ids ${SERVERS[@]}
|
|
|
+
|