acceptable-insurance-51692
11/17/2021, 10:06 AMoriginal_src_path = /path/to/origObj
new_src_path = /path/to/newObjWhen I execute pulumi up and select details, I see 3 actions are about to be done:
++awss3/objectCopyObjectCopy: (create-replacement)
+-awss3/objectCopyObjectCopy: (replace)
--awss3/objectCopyObjectCopy: (delete-replaced)When I execute them, they happen in order, i.e. create, replace, delete. Thing is, the delete is deleting the newly created file (which has the same path), so I'm left with an empty bucket. To emphasize - create-replacement creates the object, but it's subsequently deleted. Question is, what am I doing wrong? Edit: apparently adding the following reverses the order of operation and works around the problem. seems like a bug to me though.
{deleteBeforeReplace: true}
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by