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

Terraform Crash #4117

Closed
alex opened this issue Nov 30, 2015 · 3 comments
Closed

Terraform Crash #4117

alex opened this issue Nov 30, 2015 · 3 comments

Comments

@alex
Copy link
Contributor

alex commented Nov 30, 2015

Terraform v0.6.7
Error configuring: 1 error(s) occurred:

* Error configuring aws: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x705b70]
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 8 [running]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/ec2metadata.(*EC2Metadata).GetMetadata(0x0, 0xf4f140, 0x19, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go:18 +0x1b0
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds.requestCredList(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go:128 +0x74
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds.(*EC2RoleProvider).Retrieve(0x821a90a20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go:85 +0x7b
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/credentials.(*ChainProvider).Retrieve(0x821a90a80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go:65 +0xf2
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/credentials.(*Credentials).Get(0x821aa20f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/aws/aws-sdk-go/aws/credentials/credentials.go:182 +0x111
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.Provider.func1()
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/builtin/providers/aws/provider.go:48 +0x54c
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: sync.(*Once).Do(0x8219bead0, 0x8219e6280)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/sync/once.go:44 +0xe4
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.Provider.func2(0x0, 0x0, 0x821b101b0, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/builtin/providers/aws/provider.go:62 +0x54
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.Provider.func3(0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/builtin/providers/aws/provider.go:87 +0x91
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Schema).DefaultValue(0x821b0c8f0, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/helper/schema/schema.go:200 +0x9f
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.schemaMap.Input(0x821ae7110, 0x8821a96fa0, 0x8219e6d00, 0x821ae7920, 0xc85000, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/helper/schema/schema.go:407 +0x32b
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Input(0x821ae70e0, 0x8821a96fa0, 0x8219e6d00, 0x821ae7920, 0x821969540, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/helper/schema/provider.go:95 +0x4e
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Input(0x8219e6400, 0x8219bff00, 0x821b100c0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/resource_provider.go:271 +0x22b
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: reflect.Value.call(0xb2d8a0, 0xda6e70, 0x13, 0xe372e0, 0x4, 0x821a8bee8, 0x3, 0x3, 0x0, 0x0, ...)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/reflect/value.go:432 +0x120a
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: reflect.Value.Call(0xb2d8a0, 0xda6e70, 0x13, 0x821a8bee8, 0x3, 0x3, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/reflect/value.go:300 +0xb1
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*service).call(0x821add280, 0x821add240, 0x8219bfae0, 0x821966680, 0x8219e6420, 0x8f67c0, 0x8219bff00, 0x16, 0x8f6820, 0x821b100c0, ...)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:383 +0x1c1
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:477 +0x4ac
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 1 [IO wait]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x8821acf068, 0x72, 0x8218e61b0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/netpoll.go:157 +0x60
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0x821a36060, 0x72, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/fd_poll_runtime.go:73 +0x3a
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0x821a36060, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/fd_poll_runtime.go:78 +0x36
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*netFD).accept(0x821a36000, 0x0, 0x8821acf128, 0x821a2c340)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/fd_unix.go:408 +0x27c
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*UnixListener).AcceptUnix(0x821a2c280, 0x8219e5cc0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/unixsock_posix.go:304 +0x53
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*UnixListener).Accept(0x821a2c280, 0x0, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/unixsock_posix.go:314 +0x41
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).Accept(0x821a26290, 0x8821ace0c0, 0x821a2c280)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:33 +0x34
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve(0x8219e5ef8)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/plugin/server.go:88 +0x7cc
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: main.main()
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/builtin/bins/provider-aws/main.go:11 +0x40
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 17 [syscall]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: os/signal.loop()
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/os/signal/signal_unix.go:22 +0x18
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by os/signal.init.1
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/os/signal/signal_unix.go:28 +0x37
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 18 [select, locked to thread]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: runtime.gopark(0x1154880, 0x821902728, 0xe3ef68, 0x6, 0x18, 0x2)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/proc.go:185 +0x163
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: runtime.selectgoImpl(0x821902728, 0x0, 0x18)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/select.go:392 +0xa64
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: runtime.selectgo(0x821902728)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/select.go:212 +0x12
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: runtime.ensureSigM.func1()
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/signal1_unix.go:227 +0x323
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: runtime.goexit()
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:1696 +0x1
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 19 [chan receive]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve.func1(0x821a380c0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/plugin/server.go:79 +0x66
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/plugin.Serve
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/plugin/server.go:85 +0x7aa
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 20 [select]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0x8219692c0, 0x821a83000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/stream.go:125 +0x3ae
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x8218f2a20)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:97 +0x1e9
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x8218f2a20, 0x8219be9d0, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:207 +0x260
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x8821a92c58, 0x8218f2a20, 0x8219be9d0, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:298 +0xe6
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadFull(0x8821a92c58, 0x8218f2a20, 0x8219be9d0, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:316 +0x62
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x8821a92c58, 0x8218f2a20, 0x8219be9d0, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decode.go:121 +0x92
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0x821966480, 0x8219a9860)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:76 +0x5e
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0x821966480, 0x1154900, 0x821966480)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:140 +0x47
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0x821966480, 0x8fd420, 0x821a8e560, 0x16, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:208 +0x15d
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0x821966480, 0x8fd420, 0x821a8e560, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:185 +0x289
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0x8219c4930, 0x821a8e560, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:403 +0x51
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0x8219c0640, 0x8821a92db8, 0x8219c4930, 0x0, 0x0, 0x821a8e560, 0x8219a9b00, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:576 +0x90
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0x8219c0640, 0x8821a92db8, 0x8219c4930, 0x8219c0640, 0x8219be9f0, 0x821966380, 0x0, 0x0, 0x0, 0x0, ...)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:543 +0x8b
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0x8219c0640, 0x8821a92db8, 0x8219c4930)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:462 +0x8c
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0x8219c0640, 0x8821a92ce0, 0x8219692c0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:454 +0x4ee
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).ServeConn(0x821a26290, 0x8821acf1b0, 0x821a2a030)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:76 +0x528
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).Accept
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:39 +0x180
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 21 [IO wait]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x8821acefa8, 0x72, 0x8218e61b0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/runtime/netpoll.go:157 +0x60
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0x821a36140, 0x72, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/fd_poll_runtime.go:73 +0x3a
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0x821a36140, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/fd_poll_runtime.go:78 +0x36
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0x821a360e0, 0x821a3d000, 0x1000, 0x1000, 0x0, 0x8821a8e050, 0x8218e61b0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/fd_unix.go:232 +0x23a
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net.(*conn).Read(0x821a2a030, 0x821a3d000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/net.go:172 +0xe4
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x821a38240)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:97 +0x1e9
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x821a38240, 0x8219be960, 0xc, 0xc, 0x8219be962, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:207 +0x260
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x8821a92c58, 0x821a38240, 0x8219be960, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:298 +0xe6
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadFull(0x8821a92c58, 0x821a38240, 0x8219be960, 0xc, 0xc, 0xc, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:316 +0x62
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recvLoop(0x821a62000, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:408 +0x11e
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recv(0x821a62000)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:396 +0x21
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:104 +0x4b1
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 22 [select]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).send(0x821a62000)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:358 +0x5e1
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:105 +0x4d3
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 23 [select]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).keepalive(0x821a62000)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:292 +0x240
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:107 +0x506
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 6 [select]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).AcceptStream(0x821a62000, 0x1153fd8, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/session.go:191 +0x19d
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*muxBroker).Run(0x8219e6160)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/mux_broker.go:107 +0x34
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).ServeConn
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:65 +0x38f
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 34 [select]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0x821969400, 0x821b0f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/stream.go:125 +0x3ae
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x8218f2ea0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:97 +0x1e9
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x8218f2ea0, 0x8219bfac0, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:207 +0x260
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x8821a92c58, 0x8218f2ea0, 0x8219bfac0, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:298 +0xe6
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadFull(0x8821a92c58, 0x8218f2ea0, 0x8219bfac0, 0x1, 0x9, 0x8219c0800, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:316 +0x62
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x8821a92c58, 0x8218f2ea0, 0x8219bfac0, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decode.go:121 +0x92
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0x821966900, 0x8219ad800)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:76 +0x5e
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0x821966900, 0x1154900, 0x821966900)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:140 +0x47
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0x821966900, 0x8fd420, 0x8219e6c40, 0x16, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:208 +0x15d
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0x821966900, 0x8fd420, 0x8219e6c40, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:185 +0x289
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0x821ae7290, 0x8219e6c40, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:403 +0x51
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0x821add240, 0x8821a92db8, 0x821ae7290, 0x0, 0x0, 0x8219e6c40, 0x8219adb00, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:576 +0x90
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0x821add240, 0x8821a92db8, 0x821ae7290, 0x821add240, 0x8219bfae0, 0x821966680, 0x0, 0x0, 0x0, 0x0, ...)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:543 +0x8b
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0x821add240, 0x8821a92db8, 0x821ae7290)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:462 +0x8c
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0x821add240, 0x8821a92ce0, 0x821969400)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/server.go:454 +0x4ee
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x8821a92ce0, 0x821969400, 0xf21f80, 0x10, 0xda6d40, 0x8219e6400)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x1f8
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider.func1(0x8219e6180, 0x1)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x24a
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/terraform/rpc/server.go:103 +0x62
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: goroutine 9 [runnable]:
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0x821969540, 0x821b13000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20151124-61942-4c8kwv/terraform-0.6.7/src/github.com/hashicorp/yamux/stream.go:125 +0x3ae
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x8218f3380)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:97 +0x1e9
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x8218f3380, 0x821b10190, 0x1, 0x9, 0x610ba9, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/bufio/bufio.go:207 +0x260
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x8821a92c58, 0x8218f3380, 0x821b10190, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:298 +0xe6
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: io.ReadFull(0x8821a92c58, 0x8218f3380, 0x821b10190, 0x1, 0x9, 0xd95c80, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/io/io.go:316 +0x62
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x8821a92c58, 0x8218f3380, 0x821b10190, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decode.go:121 +0x92
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0x821966a00, 0x8219043f0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:76 +0x5e
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0x821966a00, 0x1154900, 0x821966a00)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:140 +0x47
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0x821966a00, 0x8fd480, 0x821a90990, 0x16, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:208 +0x15d
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0x821966a00, 0x8fd480, 0x821a90990, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/encoding/gob/decoder.go:185 +0x289
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*gobClientCodec).ReadResponseHeader(0x821ae7ad0, 0x821a90990, 0x0, 0x0)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/client.go:223 +0x51
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: net/rpc.(*Client).input(0x8218f3440)
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/client.go:109 +0xbf
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws: created by net/rpc.NewClientWithCodec
2015/11/30 15:34:56 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.5.1/libexec/src/net/rpc/client.go:201 +0xd2
2015/11/30 15:34:56 [ERROR] root: eval: *terraform.EvalInputProvider, err: Error configuring aws: unexpected EOF
2015/11/30 15:34:56 [ERROR] root: eval: *terraform.EvalSequence, err: Error configuring aws: unexpected EOF
2015/11/30 15:34:56 [ERROR] root: eval: *terraform.EvalOpFilter, err: Error configuring aws: unexpected EOF
2015/11/30 15:34:56 [ERROR] root: eval: *terraform.EvalSequence, err: Error configuring aws: unexpected EOF
2015/11/30 15:34:56 [INFO] Exiting eval tree: provider.aws
2015/11/30 15:34:56 [DEBUG] vertex aws_launch_configuration.ecs, got dep: provider.aws
2015/11/30 15:34:56 [DEBUG] vertex aws_autoscaling_group.ecs-cluster, got dep: aws_launch_configuration.ecs
2015/11/30 15:34:56 [DEBUG] vertex aws_autoscaling_group.ecs-cluster, got dep: var.availability_zones
2015/11/30 15:34:56 [DEBUG] vertex aws_ecs_task_definition.test-http, got dep: provider.aws
2015/11/30 15:34:56 [DEBUG] /usr/local/Cellar/terraform/0.6.7/bin/terraform-provider-aws: plugin process exited
2015/11/30 15:34:56 [DEBUG] vertex aws_elb.test-http, got dep: provider.aws
2015/11/30 15:34:56 [DEBUG] vertex aws_vpc.main, got dep: provider.aws
2015/11/30 15:34:56 [DEBUG] vertex aws_subnet.main, got dep: aws_vpc.main
2015/11/30 15:34:56 [DEBUG] vertex aws_ecs_cluster.main, got dep: provider.aws
2015/11/30 15:34:56 [DEBUG] vertex aws_autoscaling_group.ecs-cluster, got dep: aws_subnet.main
2015/11/30 15:34:56 [DEBUG] vertex aws_ecs_service.test-http, got dep: aws_ecs_cluster.main
2015/11/30 15:34:56 [DEBUG] vertex aws_ecs_service.test-http, got dep: aws_ecs_task_definition.test-http
2015/11/30 15:34:56 [DEBUG] vertex aws_ecs_service.test-http, got dep: aws_elb.test-http
2015/11/30 15:34:56 [DEBUG] vertex provider.aws (close), got dep: aws_ecs_service.test-http
2015/11/30 15:34:56 [DEBUG] vertex provider.aws (close), got dep: aws_autoscaling_group.ecs-cluster
2015/11/30 15:34:56 [DEBUG] terraform-provisioner-chef: 2015/11/30 15:34:56 Plugin address: unix /var/folders/w2/bzdr73m13r9c293z856n0_v17m5szs/T/tf-plugin508579451
2015/11/30 15:34:56 [INFO] Exiting eval tree: provisioner.chef
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: provisioner.chef
2015/11/30 15:34:56 [DEBUG] Starting plugin: /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-remote-exec []string{"/usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-remote-exec"}
2015/11/30 15:34:56 [DEBUG] Waiting for RPC address for: /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-remote-exec
2015/11/30 15:34:56 [DEBUG] terraform-provisioner-remote-exec: 2015/11/30 15:34:56 Plugin address: unix /var/folders/w2/bzdr73m13r9c293z856n0_v17m5szs/T/tf-plugin208884150
2015/11/30 15:34:56 [INFO] Exiting eval tree: provisioner.remote-exec
2015/11/30 15:34:56 [DEBUG] Starting plugin: /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-local-exec []string{"/usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-local-exec"}
2015/11/30 15:34:56 [DEBUG] Waiting for RPC address for: /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-local-exec
2015/11/30 15:34:56 [DEBUG] terraform-provisioner-local-exec: 2015/11/30 15:34:56 Plugin address: unix /var/folders/w2/bzdr73m13r9c293z856n0_v17m5szs/T/tf-plugin174903662
2015/11/30 15:34:56 [INFO] Exiting eval tree: provisioner.local-exec
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: provisioner.local-exec
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: var.aws_access_key
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: var.aws_secret_key
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: provisioner.remote-exec
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: provisioner.file
2015/11/30 15:34:56 [DEBUG] vertex root, got dep: provider.aws (close)
2015/11/30 15:34:56 [DEBUG] waiting for all plugin processes to complete...
2015/11/30 15:34:56 [DEBUG] /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-remote-exec: plugin process exited
2015/11/30 15:34:56 [DEBUG] /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-local-exec: plugin process exited
2015/11/30 15:34:56 [DEBUG] /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-file: plugin process exited
2015/11/30 15:34:56 [DEBUG] /usr/local/Cellar/terraform/0.6.7/bin/terraform-provisioner-chef: plugin process exited



!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

[1]: https://github.com/hashicorp/terraform/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Here are the files I have:

main.tf:

resource "aws_vpc" "main" {
    cidr_block = "10.0.0.0/16"
}

resource "aws_subnet" "main" {
    vpc_id = "${aws_vpc.main.id}"
    cidr_block = "10.0.1.0/24"
}

resource "aws_ecs_cluster" "main" {
  name = "${var.ecs_cluster_name}"
}

resource "aws_autoscaling_group" "ecs-cluster" {
  availability_zones = ["${split(",", var.availability_zones)}"]
  vpc_zone_identifier = ["${aws_subnet.main.id}"]
  name = "ECS ${var.ecs_cluster_name}"
  min_size = 3
  max_size = 3
  desired_capacity = 3
  health_check_type = "EC2"
  launch_configuration = "${aws_launch_configuration.ecs.name}"
}

resource "aws_launch_configuration" "ecs" {
    name = "ECS ${var.ecs_cluster_name}"
    image_id = "${lookup(var.amis, var.region)}"
    instance_type = "${var.instance_type}"
    user_data = "#!/bin/bash\necho ECS_CLUSTER=${var.ecs_cluster_name} > /etc/ecs/ecs.config"
}

variables.tf:

variable "aws_access_key" {
  description = "The AWS access key."
}

variable "aws_secret_key" {
  description = "The AWS secret key."
}

variable "region" {
  description = "The AWS region to create resources in."
  default = "us-east-1"
}

variable "availability_zones" {
  description = "The availability zones"
  default = "us-east-1a,us-east-1b,us-east-1c,us-east-1d,us-east-1e"
}

variable "ecs_cluster_name" {
  description = "The name of the Amazon ECS cluster."
  default = "default"
}

variable "amis" {
  default = {
    ap-northeast-1 = "ami-8aa61c8a"
    ap-southeast-2 = "ami-5ddc9f67"
    eu-west-1      = "ami-2aaef35d"
    us-east-1      = "ami-b540eade"
    us-west-1      = "ami-5721df13"
    us-west-2      = "ami-cb584dfb"
  }
}

variable "instance_type" {
  default = "t2.micro"
}

services.tf:

resource "aws_elb" "test-http" {
    name = "test-http-elb"
    availability_zones = ["${split(",", var.availability_zones)}"]

    listener {
        lb_protocol = "http"
        lb_port = 80

        instance_protocol = "http"
        instance_port = 8080
    }

    health_check {
        health_threshold = 3
        unhealthy_threshold = 2
        timeout = 3
        taget = "HTTP:8080/hello-world"
        interval = 5
    }

    cross_zone_load_balancing = true
}

resource "aws_ecs_task_definition" "test-http" {
    family = "test-http"
    container_definition = "${file("task-definitions/test-http.json")}"
}

resource "aws_ecs_service" "test-http" {
    name = "test-http"
    cluster = "${aws_ecs_cluster.main.id}"
    task_defintion = "${aws_ecs_task_definition.test-http.arn}"
    desired_count = 3

    load_balancer {
        elb_name = "${aws_elb.test-http.id}"
        container_name = "test-http"
        container_port = 8080
    }
}
@phinze
Copy link
Contributor

phinze commented Nov 30, 2015

Hi @alex - thanks for the report! This crash was fixed in #4024, which will be released in v0.6.8. We expect to push the release tomorrow.

@phinze phinze closed this as completed Nov 30, 2015
@alex
Copy link
Contributor Author

alex commented Nov 30, 2015

Awesome. Thanks.

On Mon, Nov 30, 2015 at 3:47 PM, Paul Hinze notifications@github.com
wrote:

Closed #4117 #4117.


Reply to this email directly or view it on GitHub
#4117 (comment).

"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084

@ghost
Copy link

ghost commented Apr 29, 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 Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants