| 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 _ = require('lodash')
var iamPromised = require('aws-promised/iam')
var doesInstanceProfileExist = require('./doesInstanceProfileExist')
var doesRoleExist = require('./doesRoleExist')
function iamExistence (options) {
var iam = iamPromised(options)
return {
doesInstanceProfileExist: _.partial(doesInstanceProfileExist, iam),
doesRoleExist: _.partial(doesRoleExist, iam)
}
}
module.exports = iamExistence
|