{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3409","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3409/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3409/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3409/events","html_url":"https://github.com/hashicorp/terraform/issues/3409","id":109765006,"number":3409,"title":"GCE multiple network google_compute_instance not possible?","user":{"login":"sklaus","id":2606060,"avatar_url":"https://avatars0.githubusercontent.com/u/2606060?v=3","gravatar_id":"","url":"https://api.github.com/users/sklaus","html_url":"https://github.com/sklaus","followers_url":"https://api.github.com/users/sklaus/followers","following_url":"https://api.github.com/users/sklaus/following{/other_user}","gists_url":"https://api.github.com/users/sklaus/gists{/gist_id}","starred_url":"https://api.github.com/users/sklaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sklaus/subscriptions","organizations_url":"https://api.github.com/users/sklaus/orgs","repos_url":"https://api.github.com/users/sklaus/repos","events_url":"https://api.github.com/users/sklaus/events{/privacy}","received_events_url":"https://api.github.com/users/sklaus/received_events","type":"User","site_admin":false},"labels":[{"id":135750563,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/google-cloud","name":"provider/google-cloud","color":"bfdadc","default":false},{"id":85946961,"url":"https://api.github.com/repos/hashicorp/terraform/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-10-05T09:56:30Z","updated_at":"2017-04-07T14:11:12Z","closed_at":"2015-10-18T17:22:01Z","body":"Hi,\n\nI wanted to create some google_compute_instances which have 2 networks.\n\nFor that I specified 2 interfaces like this:\n\n`network_interface {\n    network = \"${google_compute_network.mi-network.name}\"\n    access_config {}\n  }\n  network_interface {\n    network = \"${google_compute_network.gf-network.name}\"\n    access_config {}\n  }`\n\nThe terraform documentation allow so:\n_network_interface - (Required) Networks to attach to the instance. This can be specified multiple times for multiple networks. Structure is documented below._\nhttps://www.terraform.io/docs/providers/google/r/compute_instance.html\n\nI get this error:\n`Error creating instance: googleapi: Error 400: Invalid value for field 'resource.networkInterfaces': ''.  Specifying more than one network interface is not supported., invalid`\n\nLooking into the GCE documentation, it says:\n_Every instance is a member of a single network._\nhttps://cloud.google.com/compute/docs/networking#networks\n\nThis means there is an error in the terraform documentation to allow for multiple networks for a GCE instance.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/292547080","html_url":"https://github.com/hashicorp/terraform/issues/3409#issuecomment-292547080","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3409","id":292547080,"user":{"login":"gandhams","id":27014538,"avatar_url":"https://avatars2.githubusercontent.com/u/27014538?v=3","gravatar_id":"","url":"https://api.github.com/users/gandhams","html_url":"https://github.com/gandhams","followers_url":"https://api.github.com/users/gandhams/followers","following_url":"https://api.github.com/users/gandhams/following{/other_user}","gists_url":"https://api.github.com/users/gandhams/gists{/gist_id}","starred_url":"https://api.github.com/users/gandhams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandhams/subscriptions","organizations_url":"https://api.github.com/users/gandhams/orgs","repos_url":"https://api.github.com/users/gandhams/repos","events_url":"https://api.github.com/users/gandhams/events{/privacy}","received_events_url":"https://api.github.com/users/gandhams/received_events","type":"User","site_admin":false},"created_at":"2017-04-07T14:11:12Z","updated_at":"2017-04-07T14:11:12Z","body":"Hi, Any possibility this issue has been fixed. I verified that multiple nics (each nic in different networks) can be added to the same vm using the cli. \r\n\r\ngcloud alpha compute instances create pavm-ssaha-swap-1 --can-ip-forward --network-interface subnet=mgmt-subnet --network-interface subnet=data1-subnet --network-interface subnet=data2-subnet --machine-type=n1-standard-2 --image pavm-guestos-feature-image --zone=us-west1-a --tags=pa-vm"}}
{"actor":{"display_login":"gandhams"}}