Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CopyFile: support assets, archives, and recursive copying #423

Merged
merged 23 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cfdfa56
Copy: support assets, archives, and recursive copying
thomas11 Apr 30, 2024
c8c3af5
Rename resource to Copy
thomas11 Apr 30, 2024
34c8277
update examples
thomas11 Apr 30, 2024
787d17b
Implement Update with hash comparison
thomas11 Apr 30, 2024
1c48f00
Extend integration test to updates
thomas11 May 1, 2024
0e20c9a
Ignore .vscode
thomas11 May 3, 2024
874e1e8
Implement Check() instead of a limited custom validation
thomas11 May 13, 2024
3f0b0cb
Correct dir handling logic
thomas11 May 13, 2024
3ce862e
Clarify localAsset and localArchive field descriptions
thomas11 May 13, 2024
67c9692
Clarify property descriptions and names
thomas11 May 14, 2024
f0233e3
Use more recent AL image in tests. Simplify Update.
thomas11 May 16, 2024
2ec6f7f
Fix bug in replacing files with directories and increase test coverage
thomas11 May 16, 2024
9cb06b2
Like cp and scp, don't overwrite files with directories
thomas11 May 21, 2024
be5174e
Adjust copy semantics to design doc and expand test coverage
thomas11 May 22, 2024
97e6fbf
Enable concurrent writes
thomas11 May 22, 2024
7de6cd5
Wrap sftp errors because SSH_FX_FAILURE is not that helpful
thomas11 May 22, 2024
f68b443
Fix up integration test so it doesn't manual dir creation
thomas11 May 22, 2024
635d09e
fix error handling in Check
thomas11 May 23, 2024
2771f61
Upgrade to latest p-go-provider and switch to AssetOrArchive
thomas11 Jun 14, 2024
deebaca
Comment and clean up example
thomas11 Jun 17, 2024
3997d6f
Rename Copy to CopyToRemote and expands its docs
thomas11 Jun 20, 2024
660c643
regenerate
thomas11 Jun 20, 2024
2d9ce57
Update Check() test
thomas11 Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sdk/dotnet/version.txt
.DS_Store
/provider/cmd/pulumi-resource-command/schema-embed.json
dist/
.vscode

rsa*
password.txt
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-py-ec2-command/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def decode_key(key):
)

# Copy a config file to our server.
cp_config = command.remote.CopyFile(
cp_config = command.remote.Copy(
'config',
connection=conn,
local_path='myapp.conf',
local_asset='myapp.conf',
remote_path='myapp.conf',
opts=pulumi.ResourceOptions(depends_on=[server])
)
Expand Down
7 changes: 7 additions & 0 deletions examples/dir_copy_ec2/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: copy-remote-ec2
runtime: nodejs
description: A command example copying a directory via sFTP
config:
pulumi:tags:
value:
pulumi:template: ""
Loading
Loading