You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Currently, the shared_image_gallery block has individual properties for the elements of an Azure Compute Gallery's ID: subscription, resource_group, gallery_name, image_name, image_version.
But when referencing a source/parent image from HCP Packer, the hcp-packer-artifact data source's external_identifier returns the full ID string, /subscriptions/<id>/resourceGroups/<name>/providers/Microsoft.Compute/galleries/<name>/images/<name>/versions/<version>
This means we have to do some nasty & fragile string parsing to pull out the individual components, or use the build labels from the HCP Packer artifact like this:
Propose the addition of a shared_image_gallery_id attribute which can be used in lieu of the five individual attributes, similar to the existing community_gallery_image_id and direct_shared_gallery_image_id attributes.
Use Case(s)
Integrating with HCP Packer to resolve a source image that is located in a Compute Gallery.
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
Currently, the
shared_image_gallery
block has individual properties for the elements of an Azure Compute Gallery's ID:subscription
,resource_group
,gallery_name
,image_name
,image_version
.But when referencing a source/parent image from HCP Packer, the
hcp-packer-artifact
data source's external_identifier returns the full ID string,/subscriptions/<id>/resourceGroups/<name>/providers/Microsoft.Compute/galleries/<name>/images/<name>/versions/<version>
This means we have to do some nasty & fragile string parsing to pull out the individual components, or use the build labels from the HCP Packer artifact like this:
Propose the addition of a
shared_image_gallery_id
attribute which can be used in lieu of the five individual attributes, similar to the existingcommunity_gallery_image_id
anddirect_shared_gallery_image_id
attributes.Use Case(s)
Integrating with HCP Packer to resolve a source image that is located in a Compute Gallery.
Potential configuration
The text was updated successfully, but these errors were encountered: