StartFed.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #! /bin/bash
  2. # 2016-02-25 FTD
  3. #
  4. # Starts these instances. Note that the instances should be stopped via salt.
  5. #
  6. # Note the weird syntax `# (Machinename)` is just to allow per-line comments
  7. # Edit ~/.aws/credentials and include a section [fedcloud] with a valid key
  8. PROFILE=fedcloud
  9. # Format output into json, text, or table
  10. OUTPUTFORMAT=text
  11. # Fed is in us-west-2, but in case you want to extend this in the future
  12. REGION=us-west-2
  13. SERVERS=(
  14. i-8c9e6b86 # (AMSFED1LARMS1)
  15. i-1a51b3ed # (AMSFED1LBBA1)
  16. i-bead4049 # (AMSFED1LBBDB1)
  17. i-d40d5a1d # (AMSFED1LCFG1)
  18. i-48e78747 # (AMSFED1LDSS1)
  19. i-a8ad405f # (AMSFED1LHCA1)
  20. i-4a8a67bd # (AMSFED1LHCDB1)
  21. i-061c4acf # (AMSFED1LIDCON1)
  22. i-451d4b8c # (AMSFED1LIDDB1)
  23. i-e4cc2d13 # (AMSFED1LIDPORT1)
  24. i-f984690e # (AMSFED1LMSC1)
  25. i-2bf47d24 # (AMSFED1LNAG1)
  26. i-47bf864c # (AMSFED1LNAT1)
  27. i-7fb93070 # (AMSFED1LPFIX1)
  28. i-c07b5bcf # (AMSFED1LSPLKIDX1)
  29. i-c68b56cc # (AMSFED1LSPLKIDX2)
  30. i-f37858fc # (AMSFED1LSPLKMN)
  31. i-f7c947f8 # (AMSFED1LSPLKSH)
  32. i-713a887e # (AMSFED1WDC1)
  33. i-9f8d8b94 # (AMSFED1WDC2)
  34. i-462e7f8f # (AMSFED1WEPO1)
  35. i-b89213b7 # (AMSFED1WSSA1)
  36. i-af41cca0 # (AMSFED1WSSDB1)
  37. i-ec8ce1e3 # (AMSFED2LVPNAS1)
  38. )
  39. aws ec2 --profile $PROFILE --output $OUTPUTFORMAT --region $REGION start-instances --instance-ids ${SERVERS[@]}