Open synhershko opened 5 years ago
2 years later, any progress on this? Alternatively, is there a workaround?
In this particular case, does deleteBeforeReplace
work as a workaround? Right now, what's happening is upon replacement (create new then delete old), the new instance attempts to attach to the disk, which is already in use. By using the deleteBeforeReplace
option, the instance should be deleted first, which should allow the disk to be attached to the new replacement.
It's wild to me that a simple use case like this has not worked for more than 5 years. I'm just trying out Pulumi and it's making me question whether it's the right choice for us.
deleteBeforeReplace was able to resolve this for me, but interestingly enough this behavior didn't seem to happen when using yaml. I only witnessed it while using typescript. I haven't tested in another besides typescript and yaml.
This issue has been addressed in PR #2586 and shipped in release v8.8.0.
The following program launches an instance with an attached disk:
Running
pulumi up
completes fine, but updating some instance parameters (e.g. startup script) requires replacing the machine when runningpulumi update
. However, the following error is received:We should be able to replace an instance by detaching the disk from existing instance, and attaching it to the new launched instance.