https://pulumi.com logo
g

great-breakfast-56601

11/10/2021, 11:56 AM
Am I correct in saying it doesn't work on the first pass?
l

little-cartoon-10569

11/10/2021, 8:18 PM
Yes. The protect opt works when it is "on" a resource at the time Pulumi's engine starts its work. So you have to
up
the `
protect: true
in a separate run of Pulumi.
The same applies on removing protect. You can't remove protect and delete the resource in the same
up
.
g

great-breakfast-56601

11/11/2021, 5:39 AM
Not really what I expected