| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 1 1 1 1 2 2 1 | 'use strict'
var partial = require('lodash/function/partial')
var ec2Promised = require('aws-promised/ec2')
var doesInstanceExist = require('./doesInstanceExist')
var doesSecurityGroupExist = require('./doesSecurityGroupExist')
function ec2Existence (options) {
var ec2 = ec2Promised(options)
return {
doesInstanceExist: partial(doesInstanceExist, ec2),
doesSecurityGroupExist: partial(doesSecurityGroupExist, ec2)
}
}
module.exports = ec2Existence
|