Functions common to all aws/* modules

Source:

Methods

(inner) areTagsPidPrValid(pid, pr, collection) → {boolean}

Parameters:
Name Type Description
pid string

project identifier

pr string

pull request #

collection Array.<Tags>

to search

Source:
Returns:
Type
boolean

(inner) areTagsPidValid(pid, collection)

Parameters:
Name Type Description
pid string
collection Array.<Tag>
Source:

(inner) awsTagEc2(ec2, resourceIds, tags)

Parameters:
Name Type Description
ec2 EC2
resourceIds Array.<string> | string
tags Array.<Tags>
Source:

(inner) bindAws(aws, target) → {Object}

Partially applies aws to every function on the target object

Parameters:
Name Type Description
aws AwsWrapper
target Object
Source:
Returns:
Type
Object

(inner) createElbEc2(createElb, createEc2, creq) → {Promise.<{dns: string, elbId: string, instances: Array.<string>}>}

Parameters:
Name Type Description
createElb function
createEc2 function
creq Object
Source:
Returns:
Type
Promise.<{dns: string, elbId: string, instances: Array.<string>}>

(inner) createTask(task, creq) → {Q.Promise.<Object>}

Parameters:
Name Type Description
task Object
creq Object
Source:
Returns:
Type
Q.Promise.<Object>

(inner) destroyEc2Manual(ec2mgr, ec2mgr, clusterName, instanceIds) → {*|Request|Promise.<*>}

Parameters:
Name Type Description
ec2mgr Object
ec2mgr Object
clusterName string
instanceIds Array.<string>
Source:
Returns:
Type
* | Request | Promise.<*>

(inner) filterClusterListForName(name) → {function}

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

(inner) filterValidArns(arn) → {boolean}

Parameters:
Name Type Description
arn string
Source:
Returns:
Type
boolean

(inner) findFromEc2Describe(attr, results) → {string}

Parameters:
Name Type Description
attr string
results AWSEc2DescribeResults
Source:
Throws:
TypeError
Returns:
Type
string

(inner) findIdFromEc2Describe(results) → {string}

Parameters:
Name Type Description
results AWSEc2DescribeResults
Source:
Returns:
Type
string

(inner) findIpFromEc2Describe(results) → {string}

Parameters:
Name Type Description
results AWSEc2DescribeResults
Source:
Throws:
Error
Returns:
Type
string

(inner) getDeploymentFilter(projectId, deploymnet) → {function}

Parameters:
Name Type Description
projectId string
deploymnet string
Source:
Returns:
Type
function

(inner) getDeregisterClusterFn(cluster, clusterName) → {function}

Parameters:
Name Type Description
cluster AWSPromiseWrappedCluster
clusterName string
Source:
Returns:
Type
function

(inner) getPrFilter(projectId, pr) → {function}

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

(inner) getProjectIdFilter(projectId) → {function}

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

(inner) makeAltName(name) → {string}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
string

(inner) makeAWSFilter(key, value) → {AWSFilter}

Parameters:
Name Type Description
key string
value *
Source:
Returns:
Type
AWSFilter

(inner) makeAWSTagFilter(key, value) → {AWSFilter}

Parameters:
Name Type Description
key string
value *
Source:
Returns:
Type
AWSFilter

(inner) makeAWSVPCFilter(value) → {AWSFilter}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
AWSFilter

(inner) makeDeploymentFilter(deployment) → {AWSFilter}

Parameters:
Name Type Description
deployment string
Source:
Returns:
Type
AWSFilter

(inner) makeEc2DescribeDeployment(describe) → {function}

Parameters:
Name Type Description
describe function
Source:
Returns:
Type
function

(inner) makeEc2DescribeFn(ec2, apiFn, apiListName, baseFilters)

Parameters:
Name Type Description
ec2 EC2
apiFn string

name of the ec2 api function to call

apiListName string

name of the description list in the result

baseFilters Array.<Filter>
Source:
Returns:

function(...)

(inner) makeEc2DescribePrFn(describe) → {function}

Parameters:
Name Type Description
describe function
Source:
Returns:
Type
function

(inner) makeEc2DescribeProjectFn(describe) → {function}

Parameters:
Name Type Description
describe function
Source:
Returns:
Type
function

(inner) makePrFilter(pr) → {AWSFilter}

Parameters:
Name Type Description
pr string
Source:
Returns:
Type
AWSFilter

(inner) makeProjectFilter(pid) → {AWSFilter}

Parameters:
Name Type Description
pid string
Source:
Returns:
Type
AWSFilter

(inner) processZduClusterResults(name) → {function}

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

(inner) qualifyUrl(config, url) → {string}

Parameters:
Name Type Description
config Object
url string
Source:
Returns:
Type
string

(inner) registerEc2ToElb(elb, creq) → {Q.Promise.<Object>}

Parameters:
Name Type Description
elb Object
creq Object
Source:
Returns:
Type
Q.Promise.<Object>

(inner) setSubnet(subnet, creq) → {Q.Promise.<{{subnetId: string}}>}

Parameters:
Name Type Description
subnet Object
creq Object
Source:
Returns:
Type
Q.Promise.<{{subnetId: string}}>

(inner) throwInvalidPidDeploymentTag(pid, deployment, id, label)

Parameters:
Name Type Description
pid string
deployment string
id string
label string
Source:
Throws:
Error

(inner) throwInvalidPidPrTag(pid, pr, id, label)

Parameters:
Name Type Description
pid string
pr string
id string
label string
Source:
Throws:
Error

(inner) throwInvalidPidTag(pid, id, label)

Parameters:
Name Type Description
pid string
id string
label string
Source:
Throws:
Error

(inner) zduClusterNames(cluster, task, name) → {function}

Parameters:
Name Type Description
cluster
task
name
Source:
Returns:
Type
function

(inner) zduClusterNamesCreq(creq, cluster, task, name) → {Promise.<Object>}

Parameters:
Name Type Description
creq Object
cluster Object
task Object
name string
Source:
Returns:
Type
Promise.<Object>