sparse-intern-71089
03/17/2021, 3:48 PMclever-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.clever-sunset-76585
03/17/2021, 4:51 PMprehistoric-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
prehistoric-account-60014
03/17/2021, 5:36 PMpulumi 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 destroyedprehistoric-account-60014
03/17/2021, 10:03 PMdocker.Image
does.
Thanks so much for you replies guys 🙂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