Closed rhyas closed 1 year ago
Hi @rhyas there is no data source for the Google plugin. If you are using a custom built version or the plugin I can see this failing. As Packer does not execute data sources during validation.
In Packer 1.8.5 we released an update to the validate command that allows users to execute data sources as part of the validation command. You can achieve this by running packer validate --evaluate-datasources test.pkr.hcl
If interested in learning a little more about the command flag you can refer to the documentation here
I'm going to close this issue as it has been resolved.
Overview of the Issue
When trying to use the google_compute_image data source to lookup an image family, a packer validate fails saying it doesn't understand the data type:
Reproduction Steps
Sample HCL:
packer validate test.pkr.hcl
Plugin and Packer version
Packer v1.8.3 Google Plugin: packer-plugin-googlecompute_v1.0.16_x5.0_darwin_arm64
Operating system and Environment details
M1 Macbook Pro