https://pulumi.com logo
#aws
Title
# aws
q

quaint-electrician-41503

10/13/2020, 9:55 PM
How can we detach a policy from an aws role instance? https://docs.aws.amazon.com/cli/latest/reference/iam/detach-role-policy.html
Maybe just use the amazon sdk if pulumi doesn't have this function?
w

worried-city-86458

10/13/2020, 10:18 PM
Pulumi will converge on "desired state" for any resources it owns So if it owns the instance role you would just remove the policy from the source and it would be deleted
q

quaint-electrician-41503

10/13/2020, 11:58 PM
yeah unfortunately I'm using an external library so don't quite "own" a handle to the resouce but instead a reference to it's arn.
As I wait for the library producers to make a change, I'm trying to come up with a work around