Hey :wave: I am using `pulumi-command` and trying ...
# getting-started
f
Hey ๐Ÿ‘‹ I am using
pulumi-command
and trying to move from the deprecated
remote.CopyFile
to
remote.CopyToRemote
. However I am struggling with the fact that the source is now an
Asset
instead of just a
pulumi.StringInput
with the path of a file. Because of that I cannot copy a file if the file path is not determined at plan time. It fail with the error:
Copy code
property asset value {<nil>} has a problem: either asset or archive must be set
Am I missing something or is it expected when dealing with
AssetOrArchive
inputs? Can give more context about the use case in ๐Ÿงต
b
They this method local_path = "default.txt" asset = pulumi.FileAsset(local_path)
Use this in source
f
I am not sure that can help, I would need something that work with a local_path that is not determined at the moment the plan is done, it was working with
CopyFile
but did not manage to have it working with
CopyToRemote