{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2970","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2970/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2970/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2970/events","html_url":"https://github.com/mitchellh/packer/issues/2970","id":119213587,"number":2970,"title":"Not running on GCE","user":{"login":"Fodoj","id":78866,"avatar_url":"https://avatars.githubusercontent.com/u/78866?v=3","gravatar_id":"","url":"https://api.github.com/users/Fodoj","html_url":"https://github.com/Fodoj","followers_url":"https://api.github.com/users/Fodoj/followers","following_url":"https://api.github.com/users/Fodoj/following{/other_user}","gists_url":"https://api.github.com/users/Fodoj/gists{/gist_id}","starred_url":"https://api.github.com/users/Fodoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fodoj/subscriptions","organizations_url":"https://api.github.com/users/Fodoj/orgs","repos_url":"https://api.github.com/users/Fodoj/repos","events_url":"https://api.github.com/users/Fodoj/events{/privacy}","received_events_url":"https://api.github.com/users/Fodoj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/google","name":"builder/google","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T15:35:34Z","updated_at":"2015-12-15T20:36:49Z","closed_at":null,"body":"It seems like it is impossible to use packer for Google Cloud without service account file. I have gcloud configured on my machine and I can perform all API requests etc (including creating infrastructures via Terraform). But Packer always complains that I am not running on GCE if I provide empty account_file. Is that true? There is no way not to use acount file at the moment, right?"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/164889321","html_url":"https://github.com/mitchellh/packer/issues/2970#issuecomment-164889321","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2970","id":164889321,"user":{"login":"nyetsche","id":755655,"avatar_url":"https://avatars.githubusercontent.com/u/755655?v=3","gravatar_id":"","url":"https://api.github.com/users/nyetsche","html_url":"https://github.com/nyetsche","followers_url":"https://api.github.com/users/nyetsche/followers","following_url":"https://api.github.com/users/nyetsche/following{/other_user}","gists_url":"https://api.github.com/users/nyetsche/gists{/gist_id}","starred_url":"https://api.github.com/users/nyetsche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyetsche/subscriptions","organizations_url":"https://api.github.com/users/nyetsche/orgs","repos_url":"https://api.github.com/users/nyetsche/repos","events_url":"https://api.github.com/users/nyetsche/events{/privacy}","received_events_url":"https://api.github.com/users/nyetsche/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T20:36:49Z","updated_at":"2015-12-15T20:36:49Z","body":"I just checked out from master and despite having a local account file, and it listed with `account_file`, I get:\r\n\r\n```Error creating instance: Get https://www.googleapis.com/compute/v1/projects/myproject/zones/us-east1-a?alt=json: oauth2/google: can't get a token from the metadata service; not running on GCE```\r\n\r\nI am of course, running outside GCE."}}