jumppad icon indicating copy to clipboard operation
jumppad copied to clipboard

Add the capability to the copy resource to copy from remote sources

Open eveld opened this issue 1 year ago • 0 comments

Copy files from remote sources such as git, http, etc.

resource "copy" "local" {
  source = "${dir()}/files/foo"
  destination = "${data("copy")}/local"
}

resource "copy" "http" {
  source = "https://www.foundanimals.org/wp-content/uploads/2023/02/twenty20_b4e89a76-af70-4567-b92a-9c3bbf335cb3.jpg"
  destination = "${data("copy")}/http"
}

resource "copy" "git" {
  source = "github.com/jumppad-labs/examples"
  destination = "${data("copy")}/git"
}

resource "copy" "zip" {
  source = "https://releases.hashicorp.com/nomad/1.6.3/nomad_1.6.3_linux_amd64.zip"
  destination = "${data("copy")}/zip"
}

eveld avatar Nov 14 '23 17:11 eveld