https://pulumi.com logo
Title
f

flat-pager-43269

01/01/2023, 8:07 PM
One more beginner's question: I have a pulumi python project and I copy a file into the created VM using:
cp_config = command.remote.CopyFile(
    'config',
    connection=connection,
    local_path='install.sh',
    remote_path='install.sh',
    opts=pulumi.ResourceOptions(depends_on=[vm]),
)
the problem starts when I run
pulumi up
in order to update an existing stack. when I change the file
install.sh
the new file is not being copied to the existing machine. what can I do?
w

white-balloon-205

01/02/2023, 3:11 AM
This is the issue tracked in https://github.com/pulumi/pulumi-command/issues/33. There are some tips there on how to accomplish this today. We have expect to add Asset support to CopyFile to our nature you get the expected behavior by default without the need to manually manage the hash of the files(s). https://github.com/pulumi/pulumi-command/issues/33#issuecomment-1164773123