{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/16343","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/16343/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/16343/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/16343/events","html_url":"https://github.com/hashicorp/terraform/issues/16343","id":265390091,"number":16343,"title":"Terraform crash applying AWS ami without VPC","user":{"login":"katrinahayes","id":29213581,"avatar_url":"https://avatars1.githubusercontent.com/u/29213581?v=4","gravatar_id":"","url":"https://api.github.com/users/katrinahayes","html_url":"https://github.com/katrinahayes","followers_url":"https://api.github.com/users/katrinahayes/followers","following_url":"https://api.github.com/users/katrinahayes/following{/other_user}","gists_url":"https://api.github.com/users/katrinahayes/gists{/gist_id}","starred_url":"https://api.github.com/users/katrinahayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katrinahayes/subscriptions","organizations_url":"https://api.github.com/users/katrinahayes/orgs","repos_url":"https://api.github.com/users/katrinahayes/repos","events_url":"https://api.github.com/users/katrinahayes/events{/privacy}","received_events_url":"https://api.github.com/users/katrinahayes/received_events","type":"User","site_admin":false},"labels":[{"id":157909373,"url":"https://api.github.com/repos/hashicorp/terraform/labels/crash","name":"crash","color":"e11d21","default":false},{"id":127939518,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-13T19:07:30Z","updated_at":"2017-10-17T10:26:17Z","closed_at":"2017-10-17T10:26:17Z","author_association":"NONE","body":"### Terraform Version\r\nv0.10.7\r\n\r\n### Terraform Configuration Files\r\nprovider \"aws\" {\r\n    access_key = \"keyhere\"\r\n    secret_key = \"keyhere\"\r\n    region = \"us-west-2\"\r\n}\r\n\r\nresource \"aws_instance\" \"example\" {\r\n    ami = \"privateami\"\r\n    instance_type = \"m3.medium\"\r\n}\r\n\r\n### Debug Output\r\n[terraformapply.txt](https://github.com/hashicorp/terraform/files/1383709/terraformapply.txt)\r\n\r\n### Crash Output\r\n[crash.log](https://github.com/hashicorp/terraform/files/1383612/crash.log)\r\n\r\nThe panic points to resource_aws_instance.go, particularly this bit of code:\r\n\r\n\tout, err := conn.DescribeVpcs(&ec2.DescribeVpcsInput{\r\n\t\tVpcIds: []*string{instance.VpcId},\r\n\t})\r\n\tif err != nil {\r\n\t\tlog.Printf(\"[WARN] Unable to describe VPC %q: %s\", *instance.VpcId, err)\r\n\t} else {\r\n\t\tisInDefaultVpc := *out.Vpcs[0].IsDefault\r\n\t\tuseID = !isInDefaultVpc\r\n\t}\r\n\r\nSo it appears to have something to do with the fact that I'm not using a VPC, is my guess?\r\n\r\n### Expected Behavior\r\naws instance deployed\r\n\r\n### Actual Behavior\r\ncrash report, no created instance\r\n\r\n### Steps to Reproduce\r\n1. terraform init\r\n2. terraform apply\r\n\r\n### Important Factoids\r\nThis is my first attempt at working with Terraform, so there are no other existing deployments etc."}}
{"actor":{"display_login":"hashibot"}}