Closed sez76 closed 1 year ago
Hi @sez76 thanks for reaching out. This looks like a possible IAM permission error.
Have you validated that the account or service principal you are using for the Packer build has the "compute.zones.get" permission?
Depending on the configured IAM permissions and the features you are using in the builder you may require additional permissions. I recommend taking a look at the Google Compute editor role to see a list of permissions needed for creating resources.
If you are still running into issues with the initial build we recommend reaching out to the community forum for greater visibility. As the GitHub issue tracker is only watched by a small subset of maintainers and is really reserved for bugs and enhancements, you'll have a better chance of finding someone who can help you in the forum.
Hi @nywilken,
Exactly, I added the right accesses, as below:: Compute Instance Admin (v1) IAP-secured Tunnel User Service Account User
And now itβs working well, thanks for your time.
Community Note
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
Overview of the Issue
Hi, I want to build instance in google cloud, but I have the error message "googleapi: Error 403: Required 'compute.zones.get". I don't find solution for this moment.
Packer version
Simplified Packer Template
Operating system and Environment details
WSL: Ubuntu-22.04
Log Fragments and crash.log files