UNPKG

maestro

Version:

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

14 lines (10 loc) 334 B
const { iam } = require("../services"); const detachPolicies = (policyArns, roleName) => { const detachPolicyPromises = policyArns.map((arn) => { return iam .detachRolePolicy({ PolicyArn: arn, RoleName: roleName }) .promise(); }); return Promise.all(detachPolicyPromises); }; module.exports = detachPolicies;