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

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

Merged
merged 14 commits into from
Apr 16, 2024

Conversation

eveld
Copy link
Contributor

@eveld eveld commented Nov 14, 2023

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 eveld marked this pull request as draft November 14, 2023 17:54
@eveld eveld marked this pull request as ready for review April 10, 2024 10:05
Copy link
Contributor

@nicholasjackson nicholasjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YOLO

pkg/config/functions.go Fixed Show fixed Hide fixed
@nicholasjackson nicholasjackson merged commit 9101d1f into main Apr 16, 2024
26 checks passed
@eveld eveld deleted the f-copy-go-getter branch April 16, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants