https://pulumi.com logo
#general
Title
# general
c

cool-egg-852

06/25/2019, 2:05 PM
Not sure if I found a bug or if I’m doing something wrong.
error: Plan apply failed: deleting urn:pulumi:production::rsin-provider::aws:iam/policy:Policy::rsin-provider: Error deleting IAM policy arn:aws:iam::137361304112:policy/production-rsin-provider: DeleteConflict: Cannot delete a policy attached to entities.
This occurs both in destroy and up.
I renamed a policy that is attached already.
p

plain-businessperson-30883

06/25/2019, 2:37 PM
The entity attached is managed by Pulumi?
c

cool-egg-852

06/25/2019, 2:45 PM
Yes
I was able to get passed this by removing the resource from the stack and reimporting it.
I simply removed the resource by hand.
But this should definitely not be required
g

gentle-diamond-70147

06/25/2019, 4:14 PM
Do you have a small bit of code that reproduces this? I can look into it more.
c

cool-egg-852

06/25/2019, 5:52 PM
I’m not sure exactly how to reproduce it again. I’ll leave this be unless I run into it once more.
8 Views