EC2 Instance Manager

##

A taskcluster service which manages EC2 instances. This service does not understand any taskcluster concepts intrinsicaly other than using the name workerType to refer to a group of associated instances. Unless you are working on building a provisioner for AWS, you almost certainly do not want to use this service

EC2Manager Client

// Create EC2Manager client instance:

const eC2Manager = new taskcluster.EC2Manager(options);

Methods in EC2Manager Client

// eC2Manager.listWorkerTypes :: () -> Promise Result
eC2Manager.listWorkerTypes()
// eC2Manager.runInstance :: (workerType -> payload) -> Promise Nothing
eC2Manager.runInstance(workerType, payload)
// eC2Manager.terminateWorkerType :: workerType -> Promise Nothing
eC2Manager.terminateWorkerType(workerType)
// eC2Manager.workerTypeStats :: workerType -> Promise Result
eC2Manager.workerTypeStats(workerType)
// eC2Manager.workerTypeHealth :: workerType -> Promise Result
eC2Manager.workerTypeHealth(workerType)
// eC2Manager.workerTypeErrors :: workerType -> Promise Result
eC2Manager.workerTypeErrors(workerType)
// eC2Manager.workerTypeState :: workerType -> Promise Result
eC2Manager.workerTypeState(workerType)
// eC2Manager.ensureKeyPair :: (name -> payload) -> Promise Nothing
eC2Manager.ensureKeyPair(name, payload)
// eC2Manager.removeKeyPair :: name -> Promise Nothing
eC2Manager.removeKeyPair(name)
// eC2Manager.terminateInstance :: (region -> instanceId) -> Promise Nothing
eC2Manager.terminateInstance(region, instanceId)
// eC2Manager.getPrices :: () -> Promise Result
eC2Manager.getPrices()
// eC2Manager.getSpecificPrices :: payload -> Promise Result
eC2Manager.getSpecificPrices(payload)
// eC2Manager.getHealth :: () -> Promise Result
eC2Manager.getHealth()
// eC2Manager.getRecentErrors :: () -> Promise Result
eC2Manager.getRecentErrors()
// eC2Manager.regions :: () -> Promise Nothing
eC2Manager.regions()
// eC2Manager.amiUsage :: () -> Promise Nothing
eC2Manager.amiUsage()
// eC2Manager.ebsUsage :: () -> Promise Nothing
eC2Manager.ebsUsage()
// eC2Manager.dbpoolStats :: () -> Promise Nothing
eC2Manager.dbpoolStats()
// eC2Manager.allState :: () -> Promise Nothing
eC2Manager.allState()
// eC2Manager.sqsStats :: () -> Promise Nothing
eC2Manager.sqsStats()
// eC2Manager.purgeQueues :: () -> Promise Nothing
eC2Manager.purgeQueues()
// eC2Manager.apiReference :: () -> Promise Nothing
eC2Manager.apiReference()
// eC2Manager.ping :: () -> Promise Nothing
eC2Manager.ping()