pulumi-command icon indicating copy to clipboard operation
pulumi-command copied to clipboard

Extend Copy to all kinds of archives and assets

Open thomas11 opened this issue 9 months ago • 0 comments

#423 gave the Copy resource the ability to take assets and archives as input, but only the path-based kinds. With custom handling, we could support the other kinds, too:

  • StringAsset: write the string into the remote file.
  • RemoteAsset and RemoteArchive: download first, then handle like a path asset.
    • It would be more efficient to SSH into the target system and initiate the copy from there (avoiding the relay), but that could introduce more failure types and be more complex to implement and test.
  • AssetArchive: recurse through and do one of the above for each one.

thomas11 avatar May 14 '24 12:05 thomas11