https://github.com/ojford/terraform-module-ssh_file
Easily acquire file contents over SSH. Like `data "local_file"`, but remote.
https://github.com/ojford/terraform-module-ssh_file
file-download module scp ssh terraform
Last synced: 7 months ago
JSON representation
Easily acquire file contents over SSH. Like `data "local_file"`, but remote.
- Host: GitHub
- URL: https://github.com/ojford/terraform-module-ssh_file
- Owner: OJFord
- License: mit
- Created: 2019-09-22T13:10:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T22:10:01.000Z (about 5 years ago)
- Last Synced: 2025-02-08T23:28:34.992Z (9 months ago)
- Topics: file-download, module, scp, ssh, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/modules/OJFord/ssh_file
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
It's easy to access the contents of a file on the machine running terraform with `data "local_file"` but in order to access a file on a *remote* machine (outside of a `provisioner`) [we have to resort to `data "external"` to run a custom command](https://github.com/hashicorp/terraform/issues/22738#).
This `ssh_file` module is designed to address this by abstracting it into a more convenient to use `module`.