Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on destroy #869

Closed
korya opened this issue Jan 27, 2015 · 11 comments
Closed

Crash on destroy #869

korya opened this issue Jan 27, 2015 · 11 comments

Comments

@korya
Copy link

korya commented Jan 27, 2015

I am not really sure what happened.

AWS state:

  • VPC was removed previously
  • its GW is detached, but not removed
  • other resources are removed

Contents of crash.log:

$ cat crash.log
2015/01/27 09:52:42 [INFO] Terraform version: 0.3.5
2015/01/27 09:52:42 Detected home directory from env var: /Users/korya
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: aws = /usr/local/bin/terraform-provider-aws
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: cloudflare = /usr/local/bin/terraform-provider-cloudflare
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: consul = /usr/local/bin/terraform-provider-consul
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: digitalocean = /usr/local/bin/terraform-provider-digitalocean
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: dnsimple = /usr/local/bin/terraform-provider-dnsimple
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: google = /usr/local/bin/terraform-provider-google
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: heroku = /usr/local/bin/terraform-provider-heroku
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: mailgun = /usr/local/bin/terraform-provider-mailgun
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: null = /usr/local/bin/terraform-provider-null
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: file = /usr/local/bin/terraform-provisioner-file
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: local-exec = /usr/local/bin/terraform-provisioner-local-exec
2015/01/27 09:52:42 [DEBUG] Discoverd plugin: remote-exec = /usr/local/bin/terraform-provisioner-remote-exec
2015/01/27 09:52:42 Detected home directory from env var: /Users/korya
2015/01/27 09:52:42 [DEBUG] Attempting to open CLI config file: /Users/korya/.terraformrc
2015/01/27 09:52:42 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2015/01/27 09:52:42 Detected home directory from env var: /Users/korya
2015/01/27 09:52:43 [DEBUG] Creating graph for path: [root]
2015/01/27 09:52:43 [DEBUG] Starting plugin: /usr/local/bin/terraform-provider-aws []string{"/usr/local/bin/terraform-provider-aws"}
2015/01/27 09:52:43 [DEBUG] Waiting for RPC address for: /usr/local/bin/terraform-provider-aws
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 Plugin address: unix /var/folders/33/9nzx3m3n0fj7_tg1r3rdnkwc0000gn/T/tf-plugin573487298
2015/01/27 09:52:43 [DEBUG] Graph [root] created and valid. 22 nouns.
2015/01/27 09:52:43 [INFO] Validating provider: aws
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.system: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.users: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.iguides: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_vpc.prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [INFO] Validating resource: aws_s3_bucket.system
2015/01/27 09:52:43 [INFO] Validating resource: aws_s3_bucket.users
2015/01/27 09:52:43 [INFO] Validating resource: aws_s3_bucket.iguides
2015/01/27 09:52:43 [INFO] Validating resource: aws_vpc.prd_plntr
2015/01/27 09:52:43 [DEBUG] aws_security_group.ssh_for_all: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_security_group.icmp_for_all: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_security_group.etcd: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_security_group.internal_traffic: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_internet_gateway.prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_subnet.c_prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_subnet.a_prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [INFO] Validating resource: aws_security_group.ssh_for_all
2015/01/27 09:52:43 [INFO] Validating resource: aws_security_group.icmp_for_all
2015/01/27 09:52:43 [INFO] Validating resource: aws_security_group.etcd
2015/01/27 09:52:43 [INFO] Validating resource: aws_security_group.internal_traffic
2015/01/27 09:52:43 [INFO] Validating resource: aws_internet_gateway.prd_plntr
2015/01/27 09:52:43 [INFO] Validating resource: aws_subnet.c_prd_plntr
2015/01/27 09:52:43 [INFO] Validating resource: aws_subnet.a_prd_plntr
2015/01/27 09:52:43 [DEBUG] aws_route_table.prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [INFO] Validating resource: aws_route_table.prd_plntr
2015/01/27 09:52:43 [DEBUG] aws_instance.www_a: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_instance.db_a: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_instance.db_c: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_instance.www_c: expanding to count = 1
2015/01/27 09:52:43 [INFO] Validating resource: aws_instance.www_a
2015/01/27 09:52:43 [INFO] Validating resource: aws_instance.db_a
2015/01/27 09:52:43 [INFO] Validating resource: aws_instance.db_c
2015/01/27 09:52:43 [INFO] Validating resource: aws_instance.www_c
2015/01/27 09:52:43 [DEBUG] aws_route_table_association.c_prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_route_table_association.a_prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_eip.www_a_prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [INFO] Validating resource: aws_route_table_association.c_prd_plntr
2015/01/27 09:52:43 [INFO] Validating resource: aws_route_table_association.a_prd_plntr
2015/01/27 09:52:43 [INFO] Validating resource: aws_eip.www_a_prd_plntr
2015/01/27 09:52:43 [DEBUG] aws_eip.www_c_prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [INFO] Validating resource: aws_eip.www_c_prd_plntr
2015/01/27 09:52:43 [DEBUG] Creating graph for path: [root]
2015/01/27 09:52:43 [DEBUG] Graph [root] created and valid. 22 nouns.
2015/01/27 09:52:43 [DEBUG] Creating graph for path: [root]
2015/01/27 09:52:43 [DEBUG] Graph [root] created and valid. 22 nouns.
2015/01/27 09:52:43 [INFO] Configuring provider: aws
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Building AWS auth structure
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Building AWS region structure
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Initializing EC2 connection
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Initializing ELB connection
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Initializing AutoScaling connection
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Initializing S3 connection
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Initializing RDS connection
2015/01/27 09:52:43 terraform-provider-aws: 2015/01/27 09:52:43 [INFO] Initializing Route53 connection
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.system: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.users: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.iguides: expanding to count = 1
2015/01/27 09:52:43 [DEBUG] aws_vpc.prd_plntr: expanding to count = 1
2015/01/27 09:52:43 [INFO] Module root walking: aws_s3_bucket.system (Graph node: aws_s3_bucket.system)
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.system: Not refreshing, ID is empty
2015/01/27 09:52:43 [INFO] Module root walking: aws_s3_bucket.users (Graph node: aws_s3_bucket.users)
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.users: Not refreshing, ID is empty
2015/01/27 09:52:43 [INFO] Module root walking: aws_s3_bucket.iguides (Graph node: aws_s3_bucket.iguides)
2015/01/27 09:52:43 [DEBUG] aws_s3_bucket.iguides: Not refreshing, ID is empty
2015/01/27 09:52:43 [INFO] Module root walking: aws_vpc.prd_plntr (Graph node: aws_vpc.prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_security_group.ssh_for_all: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_security_group.icmp_for_all: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_security_group.etcd: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_security_group.internal_traffic: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_internet_gateway.prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_subnet.c_prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_subnet.a_prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [INFO] Module root walking: aws_security_group.ssh_for_all (Graph node: aws_security_group.ssh_for_all)
2015/01/27 09:52:44 [DEBUG] aws_security_group.ssh_for_all: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_security_group.icmp_for_all (Graph node: aws_security_group.icmp_for_all)
2015/01/27 09:52:44 [DEBUG] aws_security_group.icmp_for_all: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_security_group.etcd (Graph node: aws_security_group.etcd)
2015/01/27 09:52:44 [DEBUG] aws_security_group.etcd: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_security_group.internal_traffic (Graph node: aws_security_group.internal_traffic)
2015/01/27 09:52:44 [DEBUG] aws_security_group.internal_traffic: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_internet_gateway.prd_plntr (Graph node: aws_internet_gateway.prd_plntr)
2015/01/27 09:52:44 [INFO] Module root walking: aws_subnet.c_prd_plntr (Graph node: aws_subnet.c_prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_subnet.c_prd_plntr: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_subnet.a_prd_plntr (Graph node: aws_subnet.a_prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_subnet.a_prd_plntr: Not refreshing, ID is empty
2015/01/27 09:52:44 [DEBUG] aws_instance.www_a: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_instance.db_c: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_instance.www_c: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_instance.db_a: expanding to count = 1
2015/01/27 09:52:44 [INFO] Module root walking: aws_instance.www_a (Graph node: aws_instance.www_a)
2015/01/27 09:52:44 [DEBUG] aws_instance.www_a: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_instance.db_c (Graph node: aws_instance.db_c)
2015/01/27 09:52:44 [DEBUG] aws_instance.db_c: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_instance.www_c (Graph node: aws_instance.www_c)
2015/01/27 09:52:44 [DEBUG] aws_instance.www_c: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_instance.db_a (Graph node: aws_instance.db_a)
2015/01/27 09:52:44 [DEBUG] aws_instance.db_a: Not refreshing, ID is empty
2015/01/27 09:52:44 [DEBUG] aws_eip.www_a_prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_eip.www_c_prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [INFO] Module root walking: aws_eip.www_a_prd_plntr (Graph node: aws_eip.www_a_prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_eip.www_a_prd_plntr: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_eip.www_c_prd_plntr (Graph node: aws_eip.www_c_prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_eip.www_c_prd_plntr: Not refreshing, ID is empty
2015/01/27 09:52:44 terraform-provider-aws: panic: runtime error: index out of range
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 129 [running]:
2015/01/27 09:52:44 terraform-provider-aws: runtime.panic(0x51b140, 0x850e3c)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsInternetGatewayRead(0xc208345f20, 0x3ee760, 0xc2080fcbd0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_internet_gateway.go:63 +0x248
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc2080e6960, 0xc208305e80, 0x3ee760, 0xc2080fcbd0, 0xc2080d8e90, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/helper/schema/resource.go:139 +0x130
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc2080e6f00, 0xc208273f00, 0xc208305e80, 0x982a30, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/helper/schema/provider.go:179 +0x192
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Refresh(0xc2080e3360, 0xc20830d820, 0xc20830d8e0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/resource_provider.go:341 +0x6f
2015/01/27 09:52:44 terraform-provider-aws: reflect.Value.call(0x4a2400, 0x549db8, 0x0, 0x130, 0x57e0e0, 0x4, 0xc208345ec0, 0x3, 0x3, 0x0, ...)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/reflect/value.go:563 +0x1210
2015/01/27 09:52:44 terraform-provider-aws: reflect.Value.Call(0x4a2400, 0x549db8, 0x0, 0x130, 0xc208345ec0, 0x3, 0x3, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/reflect/value.go:411 +0xd7
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*service).call(0xc2080190e0, 0xc2080ea300, 0xc2080d31b0, 0xc2080f53b0, 0xc2080e3380, 0x3efae0, 0xc20830d820, 0x0, 0x160, 0x3efb40, ...)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:382 +0x1c7
2015/01/27 09:52:44 terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:453 +0x427
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 16 [IO wait]:
2015/01/27 09:52:44 terraform-provider-aws: net.runtime_pollWait(0x93ed88, 0x72, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/netpoll.goc:146 +0x66
2015/01/27 09:52:44 terraform-provider-aws: net.(*pollDesc).Wait(0xc20802abc0, 0x72, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:84 +0x46
2015/01/27 09:52:44 terraform-provider-aws: net.(*pollDesc).WaitRead(0xc20802abc0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:89 +0x42
2015/01/27 09:52:44 terraform-provider-aws: net.(*netFD).accept(0xc20802ab60, 0x6a3aa8, 0x0, 0x93d3f0, 0x23)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_unix.go:419 +0x343
2015/01/27 09:52:44 terraform-provider-aws: net.(*UnixListener).AcceptUnix(0xc208044e40, 0x18efa5, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/unixsock_posix.go:293 +0x73
2015/01/27 09:52:44 terraform-provider-aws: net.(*UnixListener).Accept(0xc208044e40, 0x0, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/unixsock_posix.go:304 +0x4b
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).Accept(0xc208001370, 0x93ddb8, 0xc208044e40)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:33 +0x33
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve(0xc208001350)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/plugin/server.go:88 +0x647
2015/01/27 09:52:44 terraform-provider-aws: main.main()
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/builtin/bins/provider-aws/main.go:11 +0x4b
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 19 [finalizer wait]:
2015/01/27 09:52:44 terraform-provider-aws: runtime.park(0x14640, 0x854a98, 0x8534e9)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1369 +0x89
2015/01/27 09:52:44 terraform-provider-aws: runtime.parkunlock(0x854a98, 0x8534e9)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1385 +0x3b
2015/01/27 09:52:44 terraform-provider-aws: runfinq()
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/mgc0.c:2644 +0xcf
2015/01/27 09:52:44 terraform-provider-aws: runtime.goexit()
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1445
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 20 [syscall]:
2015/01/27 09:52:44 terraform-provider-aws: os/signal.loop()
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/os/signal/signal_unix.go:21 +0x1e
2015/01/27 09:52:44 terraform-provider-aws: created by os/signal.init·1
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/os/signal/signal_unix.go:27 +0x32
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 22 [chan receive]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/plugin.func·007()
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/plugin/server.go:79 +0x62
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/terraform/plugin.Serve
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/plugin/server.go:85 +0x623
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 23 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc208046780, 0xc208065000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/stream.go:123 +0x382
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).fill(0xc208004660)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).Read(0xc208004660, 0xc208001480, 0x1, 0x9, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:175 +0x230
2015/01/27 09:52:44 terraform-provider-aws: io.ReadAtLeast(0x93ef20, 0xc208004660, 0xc208001480, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:289 +0xf7
2015/01/27 09:52:44 terraform-provider-aws: io.ReadFull(0x93ef20, 0xc208004660, 0xc208001480, 0x1, 0x9, 0x270852, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:307 +0x71
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.decodeUintReader(0x93ef20, 0xc208004660, 0xc208001480, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decode.go:66 +0xa6
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080881e0, 0x160)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:73 +0x57
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080881e0, 0xc208045500, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:159 +0x49
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080881e0, 0x3fb840, 0xc208045540, 0x0, 0x160, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:227 +0x193
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080881e0, 0x3fb840, 0xc208045540, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:204 +0x279
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc208062180, 0xc208045540, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:401 +0x5b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc20803bc80, 0x93f168, 0xc208062180, 0x0, 0x0, 0xc208045540, 0x6a3b00, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:552 +0x9b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequest(0xc20803bc80, 0x93f168, 0xc208062180, 0xc208048120, 0xc208045000, 0x417ec0, 0x0, 0x0, 0x0, 0x0, ...)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:519 +0xbe
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc20803bc80, 0x93f168, 0xc208062180)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:438 +0x69
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc20803bc80, 0x93efa8, 0xc208046780)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:430 +0x170
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).ServeConn(0xc208001370, 0x93eec0, 0xc20803c090)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:76 +0x3d4
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).Accept
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:39 +0x135
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 24 [IO wait]:
2015/01/27 09:52:44 terraform-provider-aws: net.runtime_pollWait(0x93ecd8, 0x72, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/netpoll.goc:146 +0x66
2015/01/27 09:52:44 terraform-provider-aws: net.(*pollDesc).Wait(0xc20802ad10, 0x72, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:84 +0x46
2015/01/27 09:52:44 terraform-provider-aws: net.(*pollDesc).WaitRead(0xc20802ad10, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:89 +0x42
2015/01/27 09:52:44 terraform-provider-aws: net.(*netFD).Read(0xc20802acb0, 0xc20808b000, 0x1000, 0x1000, 0x0, 0x93d3f0, 0x23)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_unix.go:242 +0x34c
2015/01/27 09:52:44 terraform-provider-aws: net.(*conn).Read(0xc20803c090, 0xc20808b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/net.go:122 +0xe7
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).fill(0xc2080044e0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).Read(0xc2080044e0, 0xc208001440, 0xc, 0xc, 0xc, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:175 +0x230
2015/01/27 09:52:44 terraform-provider-aws: io.ReadAtLeast(0x93ef20, 0xc2080044e0, 0xc208001440, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:289 +0xf7
2015/01/27 09:52:44 terraform-provider-aws: io.ReadFull(0x93ef20, 0xc2080044e0, 0xc208001440, 0xc, 0xc, 0xc, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:307 +0x71
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recv(0xc20804c8c0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:332 +0xc9
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:93 +0x247
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 25 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Session).send(0xc20804c8c0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:290 +0x496
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:94 +0x25f
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 26 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Session).keepalive(0xc20804c8c0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:246 +0xc7
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:96 +0x289
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 28 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Session).AcceptStream(0xc20804c8c0, 0xc200000003, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/session.go:154 +0x11f
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*muxBroker).Run(0xc208044fc0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/mux_broker.go:107 +0x36
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).ServeConn
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:65 +0x2bc
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 133 [runnable]:
2015/01/27 09:52:44 terraform-provider-aws: net/http.(*persistConn).readLoop(0xc208366fd0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:868 +0x829
2015/01/27 09:52:44 terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:600 +0x93f
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 30 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc2080468c0, 0xc2080af000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/stream.go:123 +0x382
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).fill(0xc208004cc0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).Read(0xc208004cc0, 0xc208001e30, 0x1, 0x9, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:175 +0x230
2015/01/27 09:52:44 terraform-provider-aws: io.ReadAtLeast(0x93ef20, 0xc208004cc0, 0xc208001e30, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:289 +0xf7
2015/01/27 09:52:44 terraform-provider-aws: io.ReadFull(0x93ef20, 0xc208004cc0, 0xc208001e30, 0x1, 0x9, 0x759, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:307 +0x71
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.decodeUintReader(0x93ef20, 0xc208004cc0, 0xc208001e30, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decode.go:66 +0xa6
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080882d0, 0xc20803c960)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:73 +0x57
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080882d0, 0xc2080b7f00, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:159 +0x49
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080882d0, 0x3fb840, 0xc2080b7fe0, 0x0, 0x160, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:227 +0x193
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080882d0, 0x3fb840, 0xc2080b7fe0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:204 +0x279
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc208063f20, 0xc2080b7fe0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:401 +0x5b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc20806a4c0, 0x93f168, 0xc208063f20, 0x0, 0x0, 0xc2080b7fe0, 0x6a3b00, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:552 +0x9b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequest(0xc20806a4c0, 0x93f168, 0xc208063f20, 0xc2080ab320, 0xc2080b64a0, 0x3efc00, 0x0, 0x0, 0x0, 0x0, ...)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:519 +0xbe
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc20806a4c0, 0x93f168, 0xc208063f20)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:438 +0x69
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc20806a4c0, 0x93efa8, 0xc2080468c0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:430 +0x170
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x93efa8, 0xc2080468c0, 0x5c5d70, 0x10, 0x549c60, 0xc208045a80)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x18a
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.func·001()
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x1ff
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:103 +0xc0
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 99 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc2080ec000, 0xc2080f7000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/stream.go:123 +0x382
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).fill(0xc2080e43c0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).Read(0xc2080e43c0, 0xc2080d3190, 0x1, 0x9, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:175 +0x230
2015/01/27 09:52:44 terraform-provider-aws: io.ReadAtLeast(0x93ef20, 0xc2080e43c0, 0xc2080d3190, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:289 +0xf7
2015/01/27 09:52:44 terraform-provider-aws: io.ReadFull(0x93ef20, 0xc2080e43c0, 0xc2080d3190, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:307 +0x71
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.decodeUintReader(0x93ef20, 0xc2080e43c0, 0xc2080d3190, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decode.go:66 +0xa6
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080885a0, 0xc20803d1b8)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:73 +0x57
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080885a0, 0xc2080e3800, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:159 +0x49
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080885a0, 0x3fb840, 0xc2080e38e0, 0x0, 0x160, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:227 +0x193
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080885a0, 0x3fb840, 0xc2080e38e0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:204 +0x279
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc2080e70b0, 0xc2080e38e0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:401 +0x5b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc2080ea300, 0x93f168, 0xc2080e70b0, 0x0, 0x0, 0xc2080e38e0, 0x6a3b00, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:552 +0x9b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequest(0xc2080ea300, 0x93f168, 0xc2080e70b0, 0xc2080f53b0, 0xc2080e3380, 0x3efae0, 0x0, 0x0, 0x0, 0x0, ...)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:519 +0xbe
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc2080ea300, 0x93f168, 0xc2080e70b0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:438 +0x69
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc2080ea300, 0x93efa8, 0xc2080ec000)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:430 +0x170
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x93efa8, 0xc2080ec000, 0x5c5d70, 0x10, 0x549c60, 0xc2080e3360)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x18a
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.func·001()
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x1ff
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:103 +0xc0
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 134 [select]:
2015/01/27 09:52:44 terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc208366fd0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:885 +0x38f
2015/01/27 09:52:44 terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:601 +0x957
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 74 [select]:
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc2080463c0, 0xc2080e0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/yamux/stream.go:123 +0x382
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).fill(0xc208005140)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
2015/01/27 09:52:44 terraform-provider-aws: bufio.(*Reader).Read(0xc208005140, 0xc2080d2050, 0x1, 0x9, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:175 +0x230
2015/01/27 09:52:44 terraform-provider-aws: io.ReadAtLeast(0x93ef20, 0xc208005140, 0xc2080d2050, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:289 +0xf7
2015/01/27 09:52:44 terraform-provider-aws: io.ReadFull(0x93ef20, 0xc208005140, 0xc2080d2050, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/io.go:307 +0x71
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.decodeUintReader(0x93ef20, 0xc208005140, 0xc2080d2050, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decode.go:66 +0xa6
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080880f0, 0xc20803cae8)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:73 +0x57
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080880f0, 0xc2080bde00, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:159 +0x49
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080880f0, 0x3fb840, 0xc2080bde80, 0x0, 0x160, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:227 +0x193
2015/01/27 09:52:44 terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080880f0, 0x3fb840, 0xc2080bde80, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/encoding/gob/decoder.go:204 +0x279
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc2080dc540, 0xc2080bde80, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:401 +0x5b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc20806bf40, 0x93f168, 0xc2080dc540, 0x0, 0x0, 0xc2080bde80, 0x6a3b00, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:552 +0x9b
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).readRequest(0xc20806bf40, 0x93f168, 0xc2080dc540, 0xc2080de1b0, 0xc2080bd920, 0x3efa20, 0x0, 0x0, 0x0, 0x0, ...)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:519 +0xbe
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc20806bf40, 0x93f168, 0xc2080dc540)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:438 +0x69
2015/01/27 09:52:44 terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc20806bf40, 0x93efa8, 0xc2080463c0)
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/rpc/server.go:430 +0x170
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x93efa8, 0xc2080463c0, 0x5c5d70, 0x10, 0x549c60, 0xc2080bd900)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x18a
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/rpc.func·001()
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x1ff
2015/01/27 09:52:44 terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/rpc/server.go:103 +0xc0
2015/01/27 09:52:44 terraform-provider-aws:
2015/01/27 09:52:44 terraform-provider-aws: goroutine 113 [syscall]:
2015/01/27 09:52:44 terraform-provider-aws: runtime.goexit()
2015/01/27 09:52:44 terraform-provider-aws:     /usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1445
2015/01/27 09:52:44 [DEBUG] /usr/local/bin/terraform-provider-aws: plugin process exited
2015/01/27 09:52:44 [ERROR] Error walking 'aws_internet_gateway.prd_plntr': unexpected EOF
2015/01/27 09:52:44 [DEBUG] aws_route_table_association.c_prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [DEBUG] aws_route_table_association.a_prd_plntr: expanding to count = 1
2015/01/27 09:52:44 [INFO] Module root walking: aws_route_table_association.c_prd_plntr (Graph node: aws_route_table_association.c_prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_route_table_association.c_prd_plntr: Not refreshing, ID is empty
2015/01/27 09:52:44 [INFO] Module root walking: aws_route_table_association.a_prd_plntr (Graph node: aws_route_table_association.a_prd_plntr)
2015/01/27 09:52:44 [DEBUG] aws_route_table_association.a_prd_plntr: Not refreshing, ID is empty
2015/01/27 09:52:44 waiting for all plugin processes to complete...
@phinze
Copy link
Contributor

phinze commented Jan 27, 2015

Hey there - sorry you hit this! Let's see if we can get it figured out.

Pulling out the important lines here:

2015/01/27 09:52:44 terraform-provider-aws: panic: runtime error: index out of range
...
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsInternetGatewayRead(0xc208345f20, 0x3ee760, 0xc2080fcbd0, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_internet_gateway.go:63 +0x248
2015/01/27 09:52:44 terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc2080e6960, 0xc208305e80, 0x3ee760, 0xc2080fcbd0, 0xc2080d8e90, 0x0, 0x0)
2015/01/27 09:52:44 terraform-provider-aws:     /private/tmp/terraform-KKDtJo/terraform-0.3.5/src/github.com/hashicorp/terraform/helper/schema/resource.go:139 +0x130

Any chance you could share the relevant bits of your terraform config and statefile?

@korya
Copy link
Author

korya commented Jan 27, 2015

This the relevant part of my config:

resource "aws_vpc" "prd_plntr" {
  cidr_block = "172.31.0.0/16"
  tags {
    Name = "prd.plntr-vpc"
  }
}

resource "aws_subnet" "a_prd_plntr" {
  vpc_id = "${aws_vpc.prd_plntr.id}"
  cidr_block = "172.31.0.0/19"
  availability_zone = "${concat(var.aws_region, "a")}"
  tags {
    Name = "a.prd.plntr-subnet"
  }
}

resource "aws_subnet" "c_prd_plntr" {
  vpc_id = "${aws_vpc.prd_plntr.id}"
  cidr_block = "172.31.64.0/19"
  availability_zone = "${concat(var.aws_region, "c")}"
  tags {
    Name = "c.prd.plntr-subnet"
  }
}

resource "aws_internet_gateway" "prd_plntr" {
  vpc_id = "${aws_vpc.prd_plntr.id}"
}

... Other stuff is configured here: route tables, security groups ...

Just in case:

$ terraform --version
Terraform v0.3.5

Tell me if you need more info.

@phinze
Copy link
Contributor

phinze commented Jan 27, 2015

Great - let me see if I can reproduce the scenario here.

@phinze
Copy link
Contributor

phinze commented Jan 27, 2015

Ok here are the steps I took.

Made config as above. Did terraform plan, which looked good.

1__oyoy__tmux_

Got AZ error because us-east-1a is not valid for subnets:

* Error creating subnet: Value (us-east-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1c, us-east-1b, us-east-1d, us-east-1e. (InvalidParameterValue)

Modified to use us-east-1b and apply finished happily.

Performed the modifications you stated above:

  • Detached the gateway
  • Removed the VPC and subnets

Then terraform plan and terraform refresh both yelled about not finding the subnet they had in their state:

Error refreshing state: The subnet ID 'subnet-f5f46382' does not exist (InvalidSubnetID.NotFound)

Manually edited terraform.tfstate to remove the subnets and vpc, and then terraform plan looked like you'd expect.

1__oyoy__tmux_

Do you see any important steps I'm missing to get something closer to your scenario?

@korya
Copy link
Author

korya commented Jan 27, 2015

As I said, I'm not really sure about what happened. I just played with terraform: applying and then destroying my configuration.

The configuration:

  • 1 VPC
  • 1 subnet for AZ 'a', 1 subnet for AZ 'c'
  • 2 instances in subnet 'a', 2 instances in subnet 'c'
  • elastic IP for one instance in subnet 'a', elastic IP for one instance in subnet 'c'
  • gateway for the VPC

The steps should look similar to:

  1. Store a plan: terraform plan --refresh --var access_key=... --var secret_key=... --out=tf.plan

  2. Apply the plan: terraform apply tf.plan

  3. Destroy: terraform destroy --refresh --var access_key=... --var secret_key=....
    Face destroy > systematic DependencyViolation #497:

    aws_vpc.prd_plntr: Refreshing state... (ID: vpc-f5600a90)
    aws_security_group.ssh_for_all: Refreshing state... (ID: sg-64c51d00)
    aws_security_group.icmp_for_all: Refreshing state... (ID: sg-9ac41cfe)
    aws_security_group.etcd: Refreshing state... (ID: sg-9bc41cff)
    aws_security_group.internal_traffic: Refreshing state... (ID: sg-65c51d01)
    aws_internet_gateway.prd_plntr: Refreshing state... (ID: igw-dee45dbb)
    aws_subnet.c_prd_plntr: Refreshing state... (ID: subnet-5b21f370)
    aws_subnet.a_prd_plntr: Refreshing state... (ID: subnet-3edc6b67)
    aws_route_table.prd_plntr: Refreshing state... (ID: rtb-a65b1ec3)
    aws_instance.www_c: Refreshing state... (ID: i-4e77f2bf)
    aws_instance.db_c: Refreshing state... (ID: i-9676f367)
    aws_instance.www_a: Refreshing state... (ID: i-2a1ff0c5)
    aws_instance.db_a: Refreshing state... (ID: i-9d1ff072)
    aws_route_table_association.c_prd_plntr: Refreshing state... (ID: rtbassoc-f1765394)
    aws_route_table_association.a_prd_plntr: Refreshing state... (ID: rtbassoc-f6765393)
    aws_eip.www_c_prd_plntr: Refreshing state... (ID: eipalloc-462baf23)
    aws_eip.www_a_prd_plntr: Refreshing state... (ID: eipalloc-472baf22)
    aws_eip.www_a_prd_plntr: Destroying...
    aws_instance.db_c: Destroying...
    aws_instance.db_a: Destroying...
    aws_eip.www_c_prd_plntr: Destroying...
    aws_route_table_association.c_prd_plntr: Destroying...
    aws_route_table_association.a_prd_plntr: Destroying...
    aws_route_table_association.c_prd_plntr: Destruction complete
    aws_route_table_association.a_prd_plntr: Destruction complete
    aws_route_table.prd_plntr: Destroying...
    aws_route_table.prd_plntr: Destruction complete
    aws_internet_gateway.prd_plntr: Destroying...
    aws_internet_gateway.prd_plntr: Error: Network vpc-f5600a90 has some mapped public address(es). Please unmap those public address(es) before detaching the gateway. (DependencyViolation)
    aws_eip.www_c_prd_plntr: Destruction complete
    aws_instance.www_c: Destroying...
    aws_eip.www_a_prd_plntr: Destruction complete
    aws_instance.www_a: Destroying...
    aws_instance.www_c: Destruction complete
    aws_instance.www_a: Destruction complete
    aws_instance.db_c: Destruction complete
    aws_subnet.c_prd_plntr: Destroying...
    aws_instance.db_a: Destruction complete
    aws_security_group.ssh_for_all: Destroying...
    aws_security_group.icmp_for_all: Destroying...
    aws_security_group.etcd: Destroying...
    aws_subnet.a_prd_plntr: Destroying...
    aws_security_group.internal_traffic: Destroying...
    aws_subnet.c_prd_plntr: Destruction complete
    aws_subnet.a_prd_plntr: Destruction complete
    aws_security_group.etcd: Destruction complete
    aws_security_group.internal_traffic: Destruction complete
    aws_security_group.ssh_for_all: Destruction complete
    aws_security_group.icmp_for_all: Destruction complete
    Error applying plan:
    
    1 error(s) occurred:
    
    * Network vpc-f5600a90 has some mapped public address(es). Please unmap those public address(es) before detaching the gateway. (DependencyViolation)
    
    Terraform does not automatically rollback in the face of errors.
    Instead, your Terraform state file has been partially updated with
    any resources that successfully completed. Please address the error
    above and apply again to incrementally change your infrastructure.
    
  4. Create new plan: terraform plan --refresh --var access_key=... --var secret_key=... --out=tf.plan
    Output:

    Refreshing Terraform state prior to plan...
    
    aws_vpc.prd_plntr: Refreshing state... (ID: vpc-f5600a90)
    aws_internet_gateway.prd_plntr: Refreshing state... (ID: igw-dee45dbb)
    
    The Terraform execution plan has been generated and is shown below.
    Resources are shown in alphabetical order for quick scanning. Green resources
    will be created (or destroyed and then created if an existing resource
    exists), yellow resources are being changed in-place, and red resources
    will be destroyed.
    
    Your plan was also saved to the path below. Call the "apply" subcommand
    with this plan file and Terraform will exactly execute this execution
    plan.
    
    Path: tf.plan
    
    + aws_eip.www_a_prd_plntr
    allocation_id:  "" => "<computed>"
    association_id: "" => "<computed>"
    domain:         "" => "<computed>"
    instance:       "" => "${aws_instance.www_a.id}"
    private_ip:     "" => "<computed>"
    public_ip:      "" => "<computed>"
    vpc:            "" => "1"
    
    + aws_eip.www_c_prd_plntr
    allocation_id:  "" => "<computed>"
    association_id: "" => "<computed>"
    domain:         "" => "<computed>"
    instance:       "" => "${aws_instance.www_c.id}"
    private_ip:     "" => "<computed>"
    public_ip:      "" => "<computed>"
    vpc:            "" => "1"
    
    + aws_instance.db_a
    ami:                         "" => "ami-86730eee"
    associate_public_ip_address: "" => "1"
    availability_zone:           "" => "us-east-1a"
    instance_type:               "" => "r3.large"
    key_name:                    "" => "dev.plntr"
    private_dns:                 "" => "<computed>"
    private_ip:                  "" => "<computed>"
    public_dns:                  "" => "<computed>"
    public_ip:                   "" => "<computed>"
    security_groups.#:           "" => "<computed>"
    subnet_id:                   "" => "${aws_subnet.a_prd_plntr.id}"
    tenancy:                     "" => "<computed>"
    user_data:                   "" => "3aadd9798dc714a320c0f1576144ea2e6ae31ef6"
    
    + aws_instance.db_c
    ami:                         "" => "ami-86730eee"
    associate_public_ip_address: "" => "1"
    availability_zone:           "" => "us-east-1c"
    instance_type:               "" => "r3.large"
    key_name:                    "" => "dev.plntr"
    private_dns:                 "" => "<computed>"
    private_ip:                  "" => "<computed>"
    public_dns:                  "" => "<computed>"
    public_ip:                   "" => "<computed>"
    security_groups.#:           "" => "<computed>"
    subnet_id:                   "" => "${aws_subnet.c_prd_plntr.id}"
    tenancy:                     "" => "<computed>"
    user_data:                   "" => "3aadd9798dc714a320c0f1576144ea2e6ae31ef6"
    
    + aws_instance.www_a
    ami:                         "" => "ami-86730eee"
    associate_public_ip_address: "" => "1"
    availability_zone:           "" => "us-east-1a"
    instance_type:               "" => "m3.medium"
    key_name:                    "" => "dev.plntr"
    private_dns:                 "" => "<computed>"
    private_ip:                  "" => "<computed>"
    public_dns:                  "" => "<computed>"
    public_ip:                   "" => "<computed>"
    security_groups.#:           "" => "<computed>"
    subnet_id:                   "" => "${aws_subnet.a_prd_plntr.id}"
    tenancy:                     "" => "<computed>"
    user_data:                   "" => "3aadd9798dc714a320c0f1576144ea2e6ae31ef6"
    
    + aws_instance.www_c
    ami:                         "" => "ami-86730eee"
    associate_public_ip_address: "" => "1"
    availability_zone:           "" => "us-east-1c"
    instance_type:               "" => "m3.medium"
    key_name:                    "" => "dev.plntr"
    private_dns:                 "" => "<computed>"
    private_ip:                  "" => "<computed>"
    public_dns:                  "" => "<computed>"
    public_ip:                   "" => "<computed>"
    security_groups.#:           "" => "<computed>"
    subnet_id:                   "" => "${aws_subnet.c_prd_plntr.id}"
    tenancy:                     "" => "<computed>"
    user_data:                   "" => "3aadd9798dc714a320c0f1576144ea2e6ae31ef6"
    
    + aws_internet_gateway.prd_plntr
    vpc_id: "" => "vpc-f5600a90"
    
    + aws_route_table.prd_plntr
    route.#:             "" => "1"
    route.0.cidr_block:  "" => "0.0.0.0/0"
    route.0.gateway_id:  "" => "${aws_internet_gateway.prd_plntr.id}"
    route.0.instance_id: "" => ""
    vpc_id:              "" => "vpc-f5600a90"
    
    + aws_route_table_association.a_prd_plntr
    route_table_id: "" => "${aws_route_table.prd_plntr.id}"
    subnet_id:      "" => "${aws_subnet.a_prd_plntr.id}"
    
    + aws_route_table_association.c_prd_plntr
    route_table_id: "" => "${aws_route_table.prd_plntr.id}"
    subnet_id:      "" => "${aws_subnet.c_prd_plntr.id}"
    
    + aws_security_group.etcd
    description:                 "" => "Allow internal communication of etcd nodes"
    ingress.#:                   "" => "2"
    ingress.0.cidr_blocks.#:     "" => "0"
    ingress.0.from_port:         "" => "7001"
    ingress.0.protocol:          "" => "tcp"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "1"
    ingress.0.to_port:           "" => "7001"
    ingress.1.cidr_blocks.#:     "" => "0"
    ingress.1.from_port:         "" => "4001"
    ingress.1.protocol:          "" => "tcp"
    ingress.1.security_groups.#: "" => "0"
    ingress.1.self:              "" => "1"
    ingress.1.to_port:           "" => "4001"
    name:                        "" => "etcd"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "etcd-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    
    + aws_security_group.icmp_for_all
    description:                 "" => "Allow ICMP traffic from anywhere"
    ingress.#:                   "" => "1"
    ingress.0.cidr_blocks.#:     "" => "1"
    ingress.0.cidr_blocks.0:     "" => "0.0.0.0/0"
    ingress.0.from_port:         "" => "-1"
    ingress.0.protocol:          "" => "icmp"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "0"
    ingress.0.to_port:           "" => "-1"
    name:                        "" => "icmp_for_all"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "icmp_for_all-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    
    + aws_security_group.internal_traffic
    description:                 "" => "Allow internal communication of etcd nodes"
    ingress.#:                   "" => "1"
    ingress.0.cidr_blocks.#:     "" => "1"
    ingress.0.cidr_blocks.0:     "" => "172.31.0.0/16"
    ingress.0.from_port:         "" => "0"
    ingress.0.protocol:          "" => "-1"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "0"
    ingress.0.to_port:           "" => "65555"
    name:                        "" => "internal_traffic"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "internal_traffic-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    
    + aws_security_group.ssh_for_all
    description:                 "" => "Allow SSH traffic from anywhere"
    ingress.#:                   "" => "1"
    ingress.0.cidr_blocks.#:     "" => "1"
    ingress.0.cidr_blocks.0:     "" => "0.0.0.0/0"
    ingress.0.from_port:         "" => "22"
    ingress.0.protocol:          "" => "tcp"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "0"
    ingress.0.to_port:           "" => "22"
    name:                        "" => "ssh_for_all"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "ssh_for_all-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    
    + aws_subnet.a_prd_plntr
    availability_zone: "" => "us-east-1a"
    cidr_block:        "" => "172.31.0.0/19"
    tags.Name:         "" => "a.prd.plntr.ca-subnet"
    vpc_id:            "" => "vpc-f5600a90"
    
    + aws_subnet.c_prd_plntr
    availability_zone: "" => "us-east-1c"
    cidr_block:        "" => "172.31.64.0/19"
    tags.Name:         "" => "c.prd.plntr.ca-subnet"
    vpc_id:            "" => "vpc-f5600a90"
    
  5. Apply the plan again: terraform apply tf.plan
    Output:

    aws_security_group.ssh_for_all: Creating...
    description:                 "" => "Allow SSH traffic from anywhere"
    ingress.#:                   "" => "1"
    ingress.0.cidr_blocks.#:     "" => "1"
    ingress.0.cidr_blocks.0:     "" => "0.0.0.0/0"
    ingress.0.from_port:         "" => "22"
    ingress.0.protocol:          "" => "tcp"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "0"
    ingress.0.to_port:           "" => "22"
    name:                        "" => "ssh_for_all"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "ssh_for_all-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    aws_security_group.icmp_for_all: Creating...
    description:                 "" => "Allow ICMP traffic from anywhere"
    ingress.#:                   "" => "1"
    ingress.0.cidr_blocks.#:     "" => "1"
    ingress.0.cidr_blocks.0:     "" => "0.0.0.0/0"
    ingress.0.from_port:         "" => "-1"
    ingress.0.protocol:          "" => "icmp"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "0"
    ingress.0.to_port:           "" => "-1"
    name:                        "" => "icmp_for_all"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "icmp_for_all-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    aws_security_group.etcd: Creating...
    description:                 "" => "Allow internal communication of etcd nodes"
    ingress.#:                   "" => "2"
    ingress.0.cidr_blocks.#:     "" => "0"
    ingress.0.from_port:         "" => "7001"
    ingress.0.protocol:          "" => "tcp"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "1"
    ingress.0.to_port:           "" => "7001"
    ingress.1.cidr_blocks.#:     "" => "0"
    ingress.1.from_port:         "" => "4001"
    ingress.1.protocol:          "" => "tcp"
    ingress.1.security_groups.#: "" => "0"
    ingress.1.self:              "" => "1"
    ingress.1.to_port:           "" => "4001"
    name:                        "" => "etcd"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "etcd-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    aws_security_group.internal_traffic: Creating...
    description:                 "" => "Allow internal communication of etcd nodes"
    ingress.#:                   "" => "1"
    ingress.0.cidr_blocks.#:     "" => "1"
    ingress.0.cidr_blocks.0:     "" => "172.31.0.0/16"
    ingress.0.from_port:         "" => "0"
    ingress.0.protocol:          "" => "-1"
    ingress.0.security_groups.#: "" => "0"
    ingress.0.self:              "" => "0"
    ingress.0.to_port:           "" => "65555"
    name:                        "" => "internal_traffic"
    owner_id:                    "" => "<computed>"
    tags.Name:                   "" => "internal_traffic-sg"
    vpc_id:                      "" => "vpc-f5600a90"
    aws_internet_gateway.prd_plntr: Creating...
    vpc_id: "" => "vpc-f5600a90"
    aws_subnet.c_prd_plntr: Creating...
    availability_zone: "" => "us-east-1c"
    cidr_block:        "" => "172.31.64.0/19"
    tags.Name:         "" => "c.prd.plntr.ca-subnet"
    vpc_id:            "" => "vpc-f5600a90"
    aws_subnet.a_prd_plntr: Creating...
    availability_zone: "" => "us-east-1a"
    cidr_block:        "" => "172.31.0.0/19"
    tags.Name:         "" => "a.prd.plntr.ca-subnet"
    vpc_id:            "" => "vpc-f5600a90"
    aws_subnet.c_prd_plntr: Error: Error creating subnet: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    aws_security_group.etcd: Error: Error creating Security Group: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    aws_security_group.ssh_for_all: Error: Error creating Security Group: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    aws_subnet.a_prd_plntr: Error: Error creating subnet: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    aws_security_group.icmp_for_all: Error: Error creating Security Group: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    aws_security_group.internal_traffic: Error: Error creating Security Group: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    aws_internet_gateway.prd_plntr: Error: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    Error applying plan:
    
    1 error(s) occurred:
    
    * Error creating subnet: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound)
    
    Terraform does not automatically rollback in the face of errors.
    Instead, your Terraform state file has been partially updated with
    any resources that successfully completed. Please address the error
    above and apply again to incrementally change your infrastructure.
    
  6. Now destroy it: terraform destroy --refresh --var access_key=... --var secret_key=....
    Result: the crash

Note: step5 fails with * Error creating subnet: The vpc ID 'vpc-f5600a90' does not exist (InvalidVpcID.NotFound), so may be I've deleted the VPC manually before step5.

@phinze
Copy link
Contributor

phinze commented Jan 27, 2015

Thanks for providing all these details! Hopefully this will give me enough to reproduce and diagnose.

@korya
Copy link
Author

korya commented Jan 27, 2015

Luckily, I still had the terminal output. If that's not enough, than it's easier to close the issue.

I've discovered the tool (terraform) just yesterday, so today I played around with it.

Anyway, that's a great tool! I'm sure I'll use it in future.

@ryanuber
Copy link
Member

This looks like it is already fixed in master. The same issue seems to have cropped up in #664, and fixed in #665. @korya you might want to try building from master if that's not what you're already running, and give this another go!

@korya
Copy link
Author

korya commented Jan 27, 2015

OK. Thanks.

I have Homebrew's version of terraform. I don't really want to build it from master, and then maintain it by myself. Anyway, for now I've upgraded to 0.3.6.

@phinze
Copy link
Contributor

phinze commented Jan 28, 2015

Sounds good... closing as fixed for now - feel free to reopen if you see additional sadness you think we should look in to 👍

@phinze phinze closed this as completed Jan 28, 2015
@ghost
Copy link

ghost commented May 4, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants