sparse-intern-71089
02/19/2021, 5:27 PMwitty-candle-66007
02/19/2021, 5:38 PMskipReassignOwned
setting did you do a pulumi up
to update the state? If not, do that and then try the pulumi destroy
red-lighter-44012
02/19/2021, 5:39 PMskipDropRole
and this worked. But this is not really deleting the role so in other scenarios it might not behave as expected.red-lighter-44012
02/19/2021, 5:44 PMREASSIGN
on the role's objects?witty-candle-66007
02/19/2021, 6:05 PMwitty-candle-66007
02/19/2021, 6:08 PMGrant
resource?red-lighter-44012
02/19/2021, 6:16 PM(pseudo code) "on delete: REASSIGN OWNED BY foo TO bar"
Which would solve my problem and enable me to drop the role without tweaking the code.
For a complete drop database/stack operation it seems that SkipDropRole (not dropping the role at all and nuking the database) is the way to go.
Brb setting some backups 😄witty-candle-66007
02/19/2021, 6:27 PMred-lighter-44012
02/19/2021, 10:17 PM