prehistoric-account-60014
03/17/2021, 3:48 PMpulumi up
? In this case it's a pulumi.dynamic.Resource
and I tried always returning { changes: true }
from diff
, but that didn't work.clever-sunset-76585
03/17/2021, 4:50 PMI tried always returningIn order to _re_create the resource, you should also returnfrom{ changes: true }
, but that didn’t work.diff
deleteBeforeReplace: true
as your diff()
result. As the name implies, delete()
will be called, followed by create()
for your dynamic resource.prehistoric-account-60014
03/17/2021, 5:35 PMpulumi up
and the arguments didn't change, Pulumi doesn't even call diff
. I ended up fixing this by instead implementing it how docker.Image
works which uploads to the registry in the constructor when pulumi.runtime.isDryRun()
is false
pulumi up
is called even if none of the inputs to it changeclever-sunset-76585
03/17/2021, 5:37 PMlittle-cartoon-10569
03/17/2021, 8:33 PMprehistoric-account-60014
03/17/2021, 10:02 PMdocker.Image
resource. Every time pulumi up
is run it pushed up a new image, which is immutable, even thought there's only 1 resource, not an array. Also, the images are never deleted event though, for example, `gcp.storage.BucketObject`s do get deleted when the resource is destroyeddocker.Image
does.
Thanks so much for you replies guys 🙂