https://pulumi.com logo
Title
c

cold-caravan-83486

05/15/2021, 9:14 AM
Using Pulumi.Aws in .net, I'm getting the following error:
error: 1 error occurred:
        * updating urn:pulumi:dev::Deployment::aws:lambda/permission:Permission::wordPermission: 1 error occurred:
        * doesn't support update
Is there a way to force the permission to be deleted and re-created instead of updated; or do I have to remove it from the code and
pulumi up
and then put it back again?
c

creamy-knife-93354

05/16/2021, 10:24 AM
There is a
DeleteBeforeReplace
parameter you can use, in
CustomResourceOptions
- maybe that will help 🙂
c

cold-caravan-83486

05/16/2021, 8:00 PM
It still marked that item as requiring an update, but then failed because it doesn't support update. I don't know whether the
DeleteBeforeReplace
had an effect, or whether the decision to
update
was made on the previous state (before
DeleteBeforeReplace
was applied).