-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Copy files from Remote to Local? #3379
Comments
Support for this was recently added in Packer, but Terraform's file provisioner doesn't support it yet. I think a PR would be welcomed to allow similar sorts of use-cases as the Packer feature, and I think I have some use-cases that could benefit from it. |
Does anyone have an opinion how this should be implemented? Was wondering if this feature should be implemented in the file provisioner ( and add a variable that specifies the direction of the transfer ) or should this be another provisioner ( file-remote maybe? ) |
Any progress on this issue? |
@igormoochnick you could use regular SCP. See this for an example. |
Really looking for such feature. Direction functionality would make it even better. |
I'd also like this. My use case is a terraform that could run on Windows or Linux, so just using SCP is complicated on the windows side. |
Any update on this? It would simplify and remove a lot of workarounds we all have at the moment to solve the lack of this issue. |
I implemented this a while back but did not get around to do a pull request since I had not done a proper testing on it and it was good enough for my use case at the time. Here is the branch https://github.com/HX-Rd/terraform/tree/file-provisioner-remote-to-local |
This is a must-have for me. When setting up tinc, public keys are generated on remote machines as part of the provisioning process, which need to be downloaded locally and then distributed to all remote machines. |
I really need this feature. |
I'm finding way to copy chef's user cert when bootstraping chef-server. |
I'd like this feature as well. |
I also need this feature |
+1 |
@kalbasit's suggestion worked fine for us, so no need for this request anymore. Here is our code. Add the host to trusted hosts: Copy the remote files to local: |
+1 |
local-exec and scp alone should be able to get a file. OpenStack example:
|
+1. Similar use case as @okgolove - copy Kube serviceaccount token from remote to local. |
I would support this existing. I can hack it up with Bash, but this would still be super useful. |
Hi all! Posting a 👍 reaction on the original comment for this issue is the best way to indicate support for it, since we use reaction counts as an input to prioritization. Posting "+1" comments does not have that effect, and also creates notification noise for the many people already following this issue. |
👍 |
any updates on this ? |
I also need this feature. |
we're working with atlantis here. |
Hi folks, You can still add 👍 to the original issue comment to add your support to this enhancement request. |
Guys, Hi. Thanks again for this formidable tool. I am doing a PoC as we speak. In this context, is it possible to copy file resources from a remote server instance to a local folder? If not, should it be an enhancement request? Opinions? Votes?
Regards, Andrei
The text was updated successfully, but these errors were encountered: