hashicorp / hashicorp/packer-plugin-googlecompute
Build Shared Information Variables
- Dominant language
- Go
- Stars
- 33
- Forks
- 72
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 3
Description
Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.
#### Community Note
Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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 useful to have similar [Build Shared Information Variables](https://developer.hashicorp.com/packer/plugins/builders/amazon/ebs#build-shared-information-variables) that the Amazon EBS provider uses.
#### Use Case(s)
This would be useful for tagging an image with the source image's name.
#### Potential configuration
```
source "googlecompute" "ubuntu-lts" {
project_id = "${var.gcp-project}"
source_image_family = "ubuntu-2204-lts"
image_labels = {
image_source = {{ .SourceImgName }}
}
}
```
#### Potential References
Contributor guide
Assessment
This issue has not been assessed yet.