methods/util/verifyAWS.js
// verifies that the role exists and create if create is true
verifies that the role exists and create if create is true
verifies that the role exists and create if create is true
async function verifyRole(roleName, create = false) {
  const verifyResult = await iam.verifyRole(roleName);
  verifyResult ? console.log(finished('  Role exists\n')) : console.log(fail('  Role doesn\'t exist\n'));
  if (create && !verifyResult) await iam.createRole(roleName);
}
async function verifyRole ( roleName , create = false ) { const verifyResult = await iam . verifyRole ( roleName ) ; verifyResult ? console . log ( finished ( '  Role exists\n' ) ) : console . log ( fail ( '  Role doesn\'t exist\n' ) ) ; if ( create && ! verifyResult ) await iam . createRole ( roleName ) ; }
verifies that the role exists and create if create is true
verifies that the role exists and create if create is true