pulumi-command
pulumi-command copied to clipboard
Run CopyToRemote once
What happened?
Hi, I would like to upload a folder to a remote host but only once, successive changes to the source should be ignored.
From my understanding ignore_changes should be the option to enable:
remote.CopyToRemote(
"foo",
connection=conn,
source=FileArchive("k8s"),
remote_path="./",
opts=ResourceOptions(ignore_changes=["source"]),
)
But I get the following error:
error: command:remote:CopyToRemote resource 'foo': property archive value {<nil>} has a problem: archive must be a path to a file or directory
Any suggestion?
Thanks
Output of pulumi about
CLI
Version 3.142.0
Go Version go1.23.3
Go Compiler gc
Host
OS alpine
Version 3.20.3
Arch x86_64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).