Been enjoying playing with this today. Only one snag so far - it doesn't seem to like me setting the 'security groups' attr of the aws_securityy_group -> ingress. Works fine with cidr_blocks though
2014/07/29 16:04:29 [DEBUG] Creating graph...
2014/07/29 16:04:29 [DEBUG] Starting plugin: /etc/terraform/terraform-provider-aws []string{"/etc/terraform/terraform-provider-aws"}
2014/07/29 16:04:29 [DEBUG] Waiting for RPC address for: /etc/terraform/terraform-provider-aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Plugin address: unix /tmp/tf-plugin334779785
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Waiting for connection...
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Serving a plugin connection...
2014/07/29 16:04:29 [DEBUG] Graph created and valid. 3 nouns.
2014/07/29 16:04:29 [INFO] Validating provider: aws
2014/07/29 16:04:29 [INFO] Validating resource: aws_security_group.coreos-terraform
2014/07/29 16:04:29 [INFO] Writing backup state to: terraform.tfstate.backup
2014/07/29 16:04:29 [DEBUG] Creating graph...
2014/07/29 16:04:29 [DEBUG] Starting plugin: /etc/terraform/terraform-provider-aws []string{"/etc/terraform/terraform-provider-aws"}
2014/07/29 16:04:29 [DEBUG] Waiting for RPC address for: /etc/terraform/terraform-provider-aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Plugin address: unix /tmp/tf-plugin004221541
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Waiting for connection...
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Serving a plugin connection...
2014/07/29 16:04:29 [DEBUG] Graph created and valid. 3 nouns.
2014/07/29 16:04:29 [INFO] Configuring provider: aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Building AWS auth structure
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Building AWS region structure
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing EC2 connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing ELB connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing AutoScaling connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing S3 connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing RDS connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing Route53 connection
2014/07/29 16:04:29 [INFO] Walking: aws_security_group.coreos-terraform (Graph node: aws_security_group.coreos-terraform)
2014/07/29 16:04:29 [DEBUG] Creating graph...
2014/07/29 16:04:29 [DEBUG] Starting plugin: /etc/terraform/terraform-provider-aws []string{"/etc/terraform/terraform-provider-aws"}
2014/07/29 16:04:29 [DEBUG] Waiting for RPC address for: /etc/terraform/terraform-provider-aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Plugin address: unix /tmp/tf-plugin427491718
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Waiting for connection...
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Serving a plugin connection...
2014/07/29 16:04:29 [DEBUG] Graph created and valid. 3 nouns.
2014/07/29 16:04:29 [INFO] Configuring provider: aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Building AWS auth structure
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Building AWS region structure
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing EC2 connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing ELB connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing AutoScaling connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing S3 connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing RDS connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing Route53 connection
2014/07/29 16:04:29 [INFO] Walking: aws_security_group.coreos-terraform (Graph node: aws_security_group.coreos-terraform)
2014/07/29 16:04:29 [DEBUG] aws_security_group.coreos-terraform: Executing diff
2014/07/29 16:04:29 [DEBUG] Creating graph...
2014/07/29 16:04:29 [DEBUG] Starting plugin: /etc/terraform/terraform-provider-aws []string{"/etc/terraform/terraform-provider-aws"}
2014/07/29 16:04:29 [DEBUG] Waiting for RPC address for: /etc/terraform/terraform-provider-aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Plugin address: unix /tmp/tf-plugin139824041
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Waiting for connection...
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 Serving a plugin connection...
2014/07/29 16:04:29 [DEBUG] Graph created and valid. 3 nouns.
2014/07/29 16:04:29 [INFO] Apply walk starting
2014/07/29 16:04:29 [INFO] Configuring provider: aws
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Building AWS auth structure
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Building AWS region structure
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing EC2 connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing ELB connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing AutoScaling connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing S3 connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing RDS connection
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Initializing Route53 connection
2014/07/29 16:04:29 [INFO] Walking: aws_security_group.coreos-terraform (Graph node: aws_security_group.coreos-terraform)
2014/07/29 16:04:29 [DEBUG] aws_security_group.coreos-terraform: Executing Apply
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [DEBUG] Security Group create configuration: ec2.SecurityGroup{Id:"", Name:"coreos-terraform", Description:"coreos terraform description", VpcId:""}
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [INFO] Security Group ID: sg-519f4334
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [DEBUG] Waiting for SG () to exist
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [DEBUG] Waiting for state to become: exists
2014/07/29 16:04:29 terraform-provider-aws: 2014/07/29 16:04:29 [TRACE] Waiting 100ms before next try
2014/07/29 16:04:31 terraform-provider-aws: panic: interface conversion: interface is nil, not []interface {}
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 26 [running]:
2014/07/29 16:04:31 terraform-provider-aws: runtime.panic(0x84b0a0, 0xc208133b80)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/panic.c:279 +0xf5
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.expandIPPerms(0xc2081b9d40, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/structure.go:76 +0x6c0
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resource_aws_security_group_create(0xc2080175e0, 0xc2080b7fc0, 0x895220, 0xc2080042a0, 0xc208013750, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_security_group.go:70 +0x9b2
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/helper/resource.(*Map).Apply(0xc20803a068, 0xc2080175e0, 0xc2080b7fc0, 0x895220, 0xc2080042a0, 0x0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/helper/resource/map.go:63 +0x22a
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.(*ResourceProvider).Apply(0xc2080042a0, 0xc2080175e0, 0xc2080b7fc0, 0x7f13452c4a30, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_provider.go:107 +0x71
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Apply(0xc208000de0, 0xc2080b98f0, 0xc2080cc0a0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/rpc/resource_provider.go:237 +0x6e
2014/07/29 16:04:31 terraform-provider-aws: reflect.Value.call(0x806c40, 0x8957f8, 0x0, 0x130, 0x8c73d0, 0x4, 0xc208004cc0, 0x3, 0x3, 0x0, ...)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/reflect/value.go:563 +0x1210
2014/07/29 16:04:31 terraform-provider-aws: reflect.Value.Call(0x806c40, 0x8957f8, 0x0, 0x130, 0xc208004cc0, 0x3, 0x3, 0x0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/reflect/value.go:411 +0xd7
2014/07/29 16:04:31 terraform-provider-aws: net/rpc.(*service).call(0xc208017040, 0xc208045800, 0xc208000f10, 0xc208048090, 0xc208039520, 0x767420, 0xc2080b98f0, 0x0, 0x160, 0x767480, ...)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:382 +0x1c7
2014/07/29 16:04:31 terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:453 +0x427
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 16 [IO wait]:
2014/07/29 16:04:31 terraform-provider-aws: net.runtime_pollWait(0x7f1345440b40, 0x72, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/netpoll.goc:146 +0x66
2014/07/29 16:04:31 terraform-provider-aws: net.(*pollDesc).Wait(0xc208028290, 0x72, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
2014/07/29 16:04:31 terraform-provider-aws: net.(*pollDesc).WaitRead(0xc208028290, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
2014/07/29 16:04:31 terraform-provider-aws: net.(*netFD).Read(0xc208028230, 0xc2080a5000, 0x1000, 0x1000, 0x0, 0x7f134543f550, 0xb)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/fd_unix.go:232 +0x34c
2014/07/29 16:04:31 terraform-provider-aws: net.(*conn).Read(0xc20803a078, 0xc2080a5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/net.go:122 +0xe7
2014/07/29 16:04:31 terraform-provider-aws: bufio.(*Reader).fill(0xc208004360)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/bufio/bufio.go:97 +0x1b3
2014/07/29 16:04:31 terraform-provider-aws: bufio.(*Reader).Read(0xc208004360, 0xc208000ef0, 0x1, 0x9, 0x1, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/bufio/bufio.go:175 +0x230
2014/07/29 16:04:31 terraform-provider-aws: io.ReadAtLeast(0x7f1345440dd8, 0xc208004360, 0xc208000ef0, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/io/io.go:289 +0xf7
2014/07/29 16:04:31 terraform-provider-aws: io.ReadFull(0x7f1345440dd8, 0xc208004360, 0xc208000ef0, 0x1, 0x9, 0x0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/io/io.go:307 +0x71
2014/07/29 16:04:31 terraform-provider-aws: encoding/gob.decodeUintReader(0x7f1345440dd8, 0xc208004360, 0xc208000ef0, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/encoding/gob/decode.go:66 +0xa6
2014/07/29 16:04:31 terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080a6000, 0xc20803a8d0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/encoding/gob/decoder.go:73 +0x57
2014/07/29 16:04:31 terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080a6000, 0xc208038f00, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/encoding/gob/decoder.go:159 +0x49
2014/07/29 16:04:31 terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080a6000, 0x770de0, 0xc208038fe0, 0x0, 0x160, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/encoding/gob/decoder.go:227 +0x193
2014/07/29 16:04:31 terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080a6000, 0x770de0, 0xc208038fe0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/encoding/gob/decoder.go:204 +0x279
2014/07/29 16:04:31 terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc208023e60, 0xc208038fe0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:401 +0x5b
2014/07/29 16:04:31 terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc208045800, 0x7f1345440e28, 0xc208023e60, 0x0, 0x0, 0xc208038fe0, 0x9c1400, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:552 +0x9b
2014/07/29 16:04:31 terraform-provider-aws: net/rpc.(*Server).readRequest(0xc208045800, 0x7f1345440e28, 0xc208023e60, 0xc208048090, 0xc208039520, 0x767420, 0x0, 0x0, 0x0, 0x0, ...)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:519 +0xbe
2014/07/29 16:04:31 terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc208045800, 0x7f1345440e28, 0xc208023e60)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:438 +0x69
2014/07/29 16:04:31 terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc208045800, 0x7f1345440d28, 0xc20803a078)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/rpc/server.go:430 +0x170
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve(0x895220, 0xc2080042a0, 0x0, 0x0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/plugin/server.go:88 +0x9b6
2014/07/29 16:04:31 terraform-provider-aws: main.main()
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/builtin/bins/provider-aws/main.go:9 +0x48
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 19 [finalizer wait]:
2014/07/29 16:04:31 terraform-provider-aws: runtime.park(0x416580, 0xd438b8, 0xd2fac9)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/proc.c:1369 +0x89
2014/07/29 16:04:31 terraform-provider-aws: runtime.parkunlock(0xd438b8, 0xd2fac9)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/proc.c:1385 +0x3b
2014/07/29 16:04:31 terraform-provider-aws: runfinq()
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/mgc0.c:2644 +0xcf
2014/07/29 16:04:31 terraform-provider-aws: runtime.goexit()
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/proc.c:1445
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 20 [syscall]:
2014/07/29 16:04:31 terraform-provider-aws: os/signal.loop()
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
2014/07/29 16:04:31 terraform-provider-aws: created by os/signal.init·1
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/os/signal/signal_unix.go:27 +0x32
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 22 [chan receive]:
2014/07/29 16:04:31 terraform-provider-aws: github.com/hashicorp/terraform/plugin.func·009()
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/plugin/server.go:78 +0x62
2014/07/29 16:04:31 terraform-provider-aws: created by github.com/hashicorp/terraform/plugin.Serve
2014/07/29 16:04:31 terraform-provider-aws: /opt/gopath/src/github.com/hashicorp/terraform/plugin/server.go:84 +0x8b8
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 17 [syscall]:
2014/07/29 16:04:31 terraform-provider-aws: runtime.goexit()
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/runtime/proc.c:1445
2014/07/29 16:04:31 terraform-provider-aws:
2014/07/29 16:04:31 terraform-provider-aws: goroutine 39 [runnable]:
2014/07/29 16:04:31 terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc2080c18c0)
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/http/transport.go:885 +0x38f
2014/07/29 16:04:31 terraform-provider-aws: created by net/http.(*Transport).dialConn
2014/07/29 16:04:31 terraform-provider-aws: /opt/go/src/pkg/net/http/transport.go:601 +0x957
2014/07/29 16:04:31 [ERROR] Error walking 'aws_security_group.coreos-terraform': 1 error(s) occurred:
* unexpected EOF
2014/07/29 16:04:31 [INFO] Apply walk complete
2014/07/29 16:04:31 [DEBUG] /etc/terraform/terraform-provider-aws: plugin process exited
2014/07/29 16:04:31 waiting for all plugin processes to complete...
2014/07/29 16:04:31 [DEBUG] /etc/terraform/terraform-provider-aws: plugin process exited
2014/07/29 16:04:31 [DEBUG] /etc/terraform/terraform-provider-aws: plugin process exited
2014/07/29 16:04:31 [DEBUG] /etc/terraform/terraform-provider-aws: plugin process exited