Methods

(inner) areInstancesAtState(instances, state) → {boolean}

Parameters:
Name Type Description
instances Array.<{State: {Name: string}}>
state string
Source:
Throws:
Error
Returns:
Type
boolean

(inner) baseFilters(aws) → {Array.<Filter>}

Parameters:
Name Type Description
aws AwsWrapper
Source:
Returns:
Type
Array.<Filter>

(inner) bindAws(aws) → {Object}

Parameters:
Name Type Description
aws AwsWrapper
Source:
Returns:

this API bound to

Type
Object

(inner) checkForState(stateToCheck) → {function}

Parameters:
Name Type Description
stateToCheck string
Source:
Returns:
Type
function

(inner) checkInstanceStatuses(aws, instanceIds)

Parameters:
Name Type Description
aws AwsWrapper
instanceIds Array.<string> | string
Source:
Throws:
TypeError
Returns:

(inner) create(aws, sgId, subnetId, userDataopt) → {function}

Parameters:
Name Type Attributes Description
aws AwsWrapper
sgId string
subnetId string
userData string <optional>

base64 string of user data to run on init

Source:
Returns:
Type
function

(inner) describe(aws) → {function}

Parameters:
Name Type Description
aws AwsWrapper
Source:
Returns:
Type
function

(inner) describeDeployment(aws, projectId, deployment)

Parameters:
Name Type Description
aws AwsWrapper
projectId string
deployment string
Source:
Throws:
TypeError
Returns:

{function(): Promise.<{ Reservations: Array.<{ Instances: Array> }>}

(inner) describePr(aws, projectId, pr)

Parameters:
Name Type Description
aws AwsWrapper
projectId string
pr string
Source:
Throws:
TypeError
Returns:

{function(): Promise.<{ Reservations: Array.<{ Instances: Array> }>}

(inner) describeProject(aws)

Parameters:
Name Type Description
aws AwsWrapper
Source:
Throws:
TypeError
Returns:

{function(): Promise.<{ Reservations: Array.<{ Instances: Array> }>}

(inner) destroy(aws, instanceId) → {function}

Parameters:
Name Type Description
aws AwsWrapper
instanceId string | Array.<string>
Source:
Throws:
TypeError
Returns:
Type
function

(inner) destroyDeployment(aws, projectId, deployment) → {function}

Parameters:
Name Type Description
aws AwsWrapper
projectId string
deployment string
Source:
Returns:
Type
function

(inner) destroyPr(aws, projectId, pr) → {function}

Parameters:
Name Type Description
aws AwsWrapper
projectId string
pr string
Source:
Returns:
Type
function

(inner) flattenDescriptions(descriptions)

Parameters:
Name Type Description
descriptions Array.<string>
Source:

(inner) flattenInstanceStatuses(resultObject) → {Array.<{Tags: Array, InstanceId: string, State: Object}>}

Parameters:
Name Type Description
resultObject Object
Source:
Returns:
Type
Array.<{Tags: Array, InstanceId: string, State: Object}>

(inner) list(aws) → {function}

Parameters:
Name Type Description
aws AwsWrapper
Source:
Returns:
Type
function

(inner) listDeployment(aws, projectId, deployment) → {function}

Parameters:
Name Type Description
aws AwsWrapper
projectId string
deployment string
Source:
Returns:
Type
function

(inner) listPr(aws, projectId, pr) → {function}

Parameters:
Name Type Description
aws AwsWrapper
projectId string
pr string
Source:
Returns:
Type
function

(inner) listProject(aws, projectId) → {function}

Parameters:
Name Type Description
aws AwsWrapper
projectId string
Source:
Returns:
Type
function

(inner) makeReadyPredicate(aws, instanceId) → {function}

Parameters:
Name Type Description
aws AwsWrapper
instanceId string | Array.<string>
Source:
Returns:
Type
function

(inner) makeTerminatedPredicate(aws, instanceId) → {function}

Parameters:
Name Type Description
aws AwsWrapper
instanceId string | Array.<string>
Source:
Returns:
Type
function

(inner) mapInstanceId(instance) → {string}

Parameters:
Name Type Description
instance Object
Source:
Returns:
Type
string

(inner) mapInstanceStatus(reservation) → {Object}

Parameters:
Name Type Description
reservation Object
Source:
Returns:
Type
Object

(inner) waitForReady(aws, instanceId) → {function}

Parameters:
Name Type Description
aws AwsWrapper
instanceId string | Array.<string>
Source:
Returns:
Type
function

(inner) waitForTermination(aws, instanceId) → {function}

Parameters:
Name Type Description
aws AwsWrapper
instanceId string | Array.<string>
Source:
Returns:
Type
function