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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCS Data Source #109

Open
logicbomb421 opened this issue Aug 12, 2022 · 0 comments
Open

GCS Data Source #109

logicbomb421 opened this issue Aug 12, 2022 · 0 comments

Comments

@logicbomb421
Copy link

Community Note

Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

It would be nice if a GCS data source existed that would allow one to download GCS objects during packer builds. These could then be referenced in file provisioners for upload to the build instance.

Use Case(s)

This would be useful when using non-GCP builders that need access to private data stored in a GCS bucket.

Potential configuration

data "googlestorage" "my_file" {
  bucket = "a-bucket"
  object = "path/to/a.file"
}

...

build {
  ...
  provisioner "file" {
    sources     = data.googlestorage.my_file.local_path
    destination = "/tmp/a.file"
  }
}

If there isn't already an accepted solution for this, and there is also interest, I am happy to work on a PR for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant