You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its not a bug report, I'm just reaching out to get some help to solve a problem of mine.
If you can suggest better forum for this that already helps.
Right now, we are creating Virtual Machines on Proxmox using this provider with Go.
Iterating through a set of input files where different VM details are described, generating VirtualMachineArgs, running NewVirtualMachine on each.
Having different parameters defined by us is fine for the most part. Every VM has to have name, resource values, list of disk... etc.
Where my problem comes is the ID. If I change the ID of VM, then pulumi recreates the resource. Which is obviously not a desired outcome.
Okay, then do not change the ID you could say. And I do not want to.
But to dynamically generate the ID, I would have to re-calculate it every time we run 'pulumi up'.
The problem is, at the time of 'pulumi up' we cannot differentiate that its a creation of a new resource, or updating an already existing. Or we can, I'm just missing something.
There is this feature ignoreChanges, which works for most fields of the stack json, but not for the VMID, since its part of the resource URN. And not a solution, since I do not want to change the Id at the first place, so no point to ignore it anyways.
How could I only run a piece of code only at creation time, store the result somewhere, and later read the same parameter from that storage. Currently we do not use any sort of database apart from the pulumi stack file stored in S3, and we would like to keep this way unless there is no other option.
The text was updated successfully, but these errors were encountered:
Hello Everyone,
Its not a bug report, I'm just reaching out to get some help to solve a problem of mine.
If you can suggest better forum for this that already helps.
Right now, we are creating Virtual Machines on Proxmox using this provider with Go.
Iterating through a set of input files where different VM details are described, generating VirtualMachineArgs, running NewVirtualMachine on each.
Having different parameters defined by us is fine for the most part. Every VM has to have name, resource values, list of disk... etc.
Where my problem comes is the ID. If I change the ID of VM, then pulumi recreates the resource. Which is obviously not a desired outcome.
Okay, then do not change the ID you could say. And I do not want to.
But to dynamically generate the ID, I would have to re-calculate it every time we run 'pulumi up'.
The problem is, at the time of 'pulumi up' we cannot differentiate that its a creation of a new resource, or updating an already existing. Or we can, I'm just missing something.
There is this feature ignoreChanges, which works for most fields of the stack json, but not for the VMID, since its part of the resource URN. And not a solution, since I do not want to change the Id at the first place, so no point to ignore it anyways.
How could I only run a piece of code only at creation time, store the result somewhere, and later read the same parameter from that storage. Currently we do not use any sort of database apart from the pulumi stack file stored in S3, and we would like to keep this way unless there is no other option.
The text was updated successfully, but these errors were encountered: