UNPKG

maestro

Version:

Maestro is a framework for quickly bootstrapping serverless orchestration workflows with AWS Step Functions

12 lines (9 loc) 403 B
const getAttachedPolicyArnsByRoleName = require("./getAttachedPolicyArnsByRoleName"); const detachPolicies = require("./detachPolicies"); const deleteRole = require("./deleteRole"); const teardownRoleByName = async (name) => { const policyArns = await getAttachedPolicyArnsByRoleName(name); await detachPolicies(policyArns, name); await deleteRole(name); }; module.exports = teardownRoleByName;