automation: detach policies before deleting role

Authored by indygreg.

Description

automation: detach policies before deleting role

You can't delete an IAM role that has attached policies.

With this change, the purge-ec2-resources command now works.

Differential Revision: https://phab.mercurial-scm.org/D6284

Details

Committed
indygregApr 19 2019, 8:15 AM
Differential Revision
D6284: automation: detach policies before deleting role
Parents
rHG730edbd836d8: automation: only iterate over our AMIs
Branches
Unknown
Tags
Unknown