Not sure if I found a bug or if I’m doing somethin...
# general
c
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
The entity attached is managed by Pulumi?
c
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
Do you have a small bit of code that reproduces this? I can look into it more.
c
I’m not sure exactly how to reproduce it again. I’ll leave this be unless I run into it once more.