provider/aws: Set aws_vpc ipv6 for associated only (#12899)
provider/aws: Set aws_vpc ipv6 for associated only (#12899)

Fixes: #12895

The AWS API returns both dissociated and associated IPv6 CIDRs. The UI
only returns the associated. Therefore, the assumption was made that we
would always take the 1st association in the set to use for state

We now loop over the set and look for the associated IPv6 CIDR before
using that in state

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSVpc_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/20 21:21:02 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSVpc_ -timeout 120m
=== RUN   TestAccAWSVpc_importBasic
--- PASS: TestAccAWSVpc_importBasic (65.91s)
=== RUN   TestAccAWSVpc_basic
--- PASS: TestAccAWSVpc_basic (50.88s)
=== RUN   TestAccAWSVpc_enableIpv6
--- PASS: TestAccAWSVpc_enableIpv6 (49.89s)
=== RUN   TestAccAWSVpc_dedicatedTenancy
--- PASS: TestAccAWSVpc_dedicatedTenancy (50.59s)
=== RUN   TestAccAWSVpc_tags
--- PASS: TestAccAWSVpc_tags (98.89s)
=== RUN   TestAccAWSVpc_update
--- PASS: TestAccAWSVpc_update (93.46s)
=== RUN   TestAccAWSVpc_bothDnsOptionsSet
--- PASS: TestAccAWSVpc_bothDnsOptionsSet (20.71s)
=== RUN   TestAccAWSVpc_DisabledDnsSupport
--- PASS: TestAccAWSVpc_DisabledDnsSupport (49.55s)
=== RUN   TestAccAWSVpc_classiclinkOptionSet
--- PASS: TestAccAWSVpc_classiclinkOptionSet (54.92s)
PASS
ok	github.com/hashicorp/terraform/builtin/providers/aws	534.829s
```
vancluever/terraform,cmorent/terraform,luis-silva/terraform,justnom/terraform,randomvariable/terraform,pgray/terraform,rkhozinov/terraform,PeteGoo/terraform,markpeek/terraform,brunomcustodio/terraform,StephenWeatherford/terraform,cwood/terraform,rrudduck/terraform,pgray/terraform,Boran/terraform,GannettDigital/terraform,koding/terraform,kristinn/terraform,markpeek/terraform,rrudduck/terraform,cmorent/terraform,apparentlymart/terraform,dwradcliffe/terraform,iansheridan/terraform,whiskeyjay/terraform,Wambosa/terraform,pdecat/terraform,VladRassokhin/terraform,bradfeehan/terraform,koding/terraform,yanndegat/terraform,jrperritt/terraform,drebes/terraform,jhedev/terraform,dougneal/terraform,JDiPierro/terraform,rhyas/terraform,kwilczynski/terraform,niclic/terraform,displague/terraform,Wambosa/terraform,taliesins/terraform,dtan4/terraform,gechr/terraform,tpoindessous/terraform,julia-stripe/terraform,brianantonelli/terraform,elblivion/terraform,heimweh/terraform,Ticketmaster/terraform,tombuildsstuff/terraform,tmshn/terraform,mafrosis/terraform,paultyng/terraform,antonbabenko/terraform,Ticketmaster/terraform,cnicolov/terraform,paultyng/terraform,KensoDev/terraform,Boran/terraform,lusis/terraform,tpoindessous/terraform,hooklift/terraform,dtan4/terraform,vancluever/terraform,HotelsDotCom/terraform,brianantonelli/terraform,Wambosa/terraform,Pryz/terraform,GrayCoder/terraform,paybyphone/terraform,luis-silva/terraform,ewbankkit/terraform,caiofilipini/terraform,tombuildsstuff/terraform,maxenglander/terraform,tommynsong/terraform,samdunne/terraform,lifesum/terraform,dwradcliffe/terraform,gechr/terraform,jcaugust/terraform,kyhavlov/terraform,pradeepbhadani/terraform,whiskeyjay/terraform,pryorda/terraform,mathieuherbert/terraform,rkhozinov/terraform,matt-deboer/terraform,fatmcgav/terraform,Pryz/terraform,bashtoni/terraform,harijayms/terraform,ddegoede/terraform,kl4w/terraform,PaulAtkins/terraform,foragerr/terraform,PeteGoo/terraform,rnaveiras/terraform,GrayCoder/terraform,justnom/terraform,mattray/terraform,fatmcgav/terraform,gazoakley/terraform,matt-deboer/terraform,ross/terraform,donaldguy/terraform,ColinHebert/terraform,bradfeehan/terraform,displague/terraform,niclic/terraform,sl1pm4t/terraform,cnicolov/terraform,tpounds/terraform,niclic/terraform,hartzell/terraform,gazoakley/terraform,lifesum/terraform,harijayms/terraform,ross/terraform,10thmagnitude/terraform,brianantonelli/terraform,heimweh/terraform,schans/terraform,whiskeyjay/terraform,evandbrown/terraform,richardc/terraform,tpoindessous/terraform,fatih/terraform,richardc/terraform,HotelsDotCom/terraform,svanharmelen/terraform,dwradcliffe/terraform,JDiPierro/terraform,TheWeatherCompany/terraform,mathieuherbert/terraform,pryorda/terraform,nlamirault/terraform,donaldguy/terraform,HotelsDotCom/terraform,paulbouwer/terraform,dn1s/terraform,schans/terraform,PaulAtkins/terraform,mathieuherbert/terraform,mattray/terraform,youhong316/terraform,richardc/terraform,glerchundi/terraform,hartzell/terraform,rrudduck/terraform,caiofilipini/terraform,paybyphone/terraform,GannettDigital/terraform,StephenWeatherford/terraform,brunomcustodio/terraform,hartzell/terraform,paybyphone/terraform,huydinhle/terraform,TheWeatherCompany/terraform,mathematician/terraform,matt-deboer/terraform,iansheridan/terraform,brandontosch/terraform,ReleaseQueue/terraform,cwood/terraform,catsby/terraform,catsby/terraform,ColinHebert/terraform,travertischio/terraform,bashtoni/terraform,pradeepbhadani/terraform,brunomcustodio/terraform,kristinn/terraform,iljaskevic/terraform,displague/terraform,cmorent/terraform,mevansam/terraform,asedge/terraform,grasshoppergroup/terraform,Pryz/terraform,Pryz/terraform,huydinhle/terraform,nlamirault/terraform,matt-deboer/terraform,ewypych/terraform,tommynsong/terraform,nathanielks/terraform,tmshn/terraform,glerchundi/terraform,kyhavlov/terraform,jrperritt/terraform,ryon/terraform,matt-deboer/terraform,mtougeron/terraform,jrperritt/terraform,golvteppe/terraform,rhyas/terraform,ross/terraform,mbfrahry/terraform,paultyng/terraform,harijayms/terraform,evandbrown/terraform,ryon/terraform,caiofilipini/terraform,sl1pm4t/terraform,wowgroup/terraform,KensoDev/terraform,sl1pm4t/terraform,billyschmidt/terraform,schans/terraform,samdunne/terraform,dtan4/terraform,julia-stripe/terraform,wowgroup/terraform,elblivion/terraform,evandbrown/terraform,bradfeehan/terraform,billyschmidt/terraform,apparentlymart/terraform,KensoDev/terraform,hartzell/terraform,KensoDev/terraform,golvteppe/terraform,paybyphone/terraform,mathieuherbert/terraform,koding/terraform,chrisjharding/terraform,kjmkznr/terraform,10thmagnitude/terraform,dwradcliffe/terraform,glerchundi/terraform,foragerr/terraform,mattray/terraform,rkhozinov/terraform,lusis/terraform,yanndegat/terraform,richardc/terraform,niclic/terraform,koding/terraform,travertischio/terraform,randomvariable/terraform,Ticketmaster/terraform,tombuildsstuff/terraform,kl4w/terraform,kjmkznr/terraform,wowgroup/terraform,koding/terraform,pdecat/terraform,brunomcustodio/terraform,huydinhle/terraform,richardc/terraform,nathanielks/terraform,mevansam/terraform,DevoKun/terraform,jcaugust/terraform,paulbouwer/terraform,billyschmidt/terraform,justnom/terraform,ReleaseQueue/terraform,jhedev/terraform,caiofilipini/terraform,glerchundi/terraform,fatmcgav/terraform,dgolja/terraform,drebes/terraform,hooklift/terraform,Boran/terraform,appbricks/ab-terraform-build,ctavan/terraform,ewypych/terraform,iansheridan/terraform,cmorent/terraform,grasshoppergroup/terraform,billyschmidt/terraform,GannettDigital/terraform,heimweh/terraform,ewypych/terraform,ctavan/terraform,ewbankkit/terraform,travertischio/terraform,pdecat/terraform,evalphobia/saas-ci-performance-compare-terraform,asedge/terraform,ross/terraform,elblivion/terraform,youhong316/terraform,VladRassokhin/terraform,ewbankkit/terraform,pryorda/terraform,cloudnautique/terraform,taliesins/terraform,appbricks/ab-terraform-build,PaulAtkins/terraform,samdunne/terraform,luis-silva/terraform,cmorent/terraform,jcaugust/terraform,hrach/hashicorp-terraform,DevoKun/terraform,mtougeron/terraform,TheWeatherCompany/terraform,drebes/terraform,catsby/terraform,nlamirault/terraform,mevansam/terraform,dgolja/terraform,Ticketmaster/terraform,kwilczynski/terraform,PaulAtkins/terraform,gechr/terraform,travertischio/terraform,wowgroup/terraform,travertischio/terraform,chrisjharding/terraform,kwilczynski/terraform,cnicolov/terraform,kjmkznr/terraform,rrudduck/terraform,HotelsDotCom/terraform,paulbouwer/terraform,dtan4/terraform,mbfrahry/terraform,foragerr/terraform,appbricks/ab-terraform-build,ctavan/terraform,maxenglander/terraform,nathanielks/terraform,mafrosis/terraform,fatih/terraform,ewypych/terraform,mathematician/terraform,dn1s/terraform,mbfrahry/terraform,10thmagnitude/terraform,grasshoppergroup/terraform,apparentlymart/terraform,appbricks/ab-terraform-build,mbfrahry/terraform,fatih/terraform,kristinn/terraform,jcaugust/terraform,JDiPierro/terraform,markpeek/terraform,kristinn/terraform,10thmagnitude/terraform,cloudnautique/terraform,youhong316/terraform,wowgroup/terraform,evandbrown/terraform,harijayms/terraform,julia-stripe/terraform,GannettDigital/terraform,ReleaseQueue/terraform,dougneal/terraform,dougneal/terraform,mafrosis/terraform,pgray/terraform,fatih/terraform,VladRassokhin/terraform,maxenglander/terraform,DevoKun/terraform,DevoKun/terraform,mathematician/terraform,ewypych/terraform,ericwestfall/terraform,chrisjharding/terraform,julia-stripe/terraform,caiofilipini/terraform,ewbankkit/terraform,nathanielks/terraform,billyschmidt/terraform,tmshn/terraform,ryon/terraform,elblivion/terraform,brianantonelli/terraform,randomvariable/terraform,hooklift/terraform,hrach/hashicorp-terraform,antonbabenko/terraform,kyhavlov/terraform,antonbabenko/terraform,randomvariable/terraform,mattray/terraform,nathanielks/terraform,ryon/terraform,foragerr/terraform,mtougeron/terraform,pgray/terraform,niclic/terraform,brandontosch/terraform,catsby/terraform,fatmcgav/terraform,displague/terraform,maxenglander/terraform,samdunne/terraform,dn1s/terraform,Wambosa/terraform,antonbabenko/terraform,ericwestfall/terraform,ryon/terraform,StephenWeatherford/terraform,DevoKun/terraform,mafrosis/terraform,chrisjharding/terraform,lifesum/terraform,ddegoede/terraform,paultyng/terraform,mathematician/terraform,bashtoni/terraform,brandontosch/terraform,asedge/terraform,cloudnautique/terraform,mtougeron/terraform,gazoakley/terraform,cwood/terraform,rnaveiras/terraform,bradfeehan/terraform,lstolyarov/terraform,evalphobia/saas-ci-performance-compare-terraform,Pryz/terraform,ColinHebert/terraform,cnicolov/terraform,tpoindessous/terraform,paulbouwer/terraform,drebes/terraform,jcaugust/terraform,rkhozinov/terraform,heimweh/terraform,luis-silva/terraform,lstolyarov/terraform,dn1s/terraform,VladRassokhin/terraform,ddegoede/terraform,youhong316/terraform,apparentlymart/terraform,golvteppe/terraform,lifesum/terraform,ReleaseQueue/terraform,ctavan/terraform,paulbouwer/terraform,StephenWeatherford/terraform,evalphobia/saas-ci-performance-compare-terraform,ctavan/terraform,TheWeatherCompany/terraform,tommynsong/terraform,brianantonelli/terraform,lusis/terraform,bradfeehan/terraform,yanndegat/terraform,mathieuherbert/terraform,KensoDev/terraform,randomvariable/terraform,iljaskevic/terraform,jhedev/terraform,svanharmelen/terraform,HotelsDotCom/terraform,tpoindessous/terraform,gazoakley/terraform,ddegoede/terraform,antonbabenko/terraform,sl1pm4t/terraform,vancluever/terraform,fatih/terraform,apparentlymart/terraform,tpounds/terraform,pradeepbhadani/terraform,rnaveiras/terraform,svanharmelen/terraform,evalphobia/saas-ci-performance-compare-terraform,lifesum/terraform,kristinn/terraform,cloudnautique/terraform,lstolyarov/terraform,jrperritt/terraform,PeteGoo/terraform,cwood/terraform,donaldguy/terraform,GannettDigital/terraform,rhyas/terraform,GrayCoder/terraform,JDiPierro/terraform,pdecat/terraform,golvteppe/terraform,kyhavlov/terraform,schans/terraform,evandbrown/terraform,yanndegat/terraform,lstolyarov/terraform,Boran/terraform,cnicolov/terraform,vancluever/terraform,rhyas/terraform,ColinHebert/terraform,markpeek/terraform,dougneal/terraform,tmshn/terraform,kl4w/terraform,ericwestfall/terraform,mtougeron/terraform,asedge/terraform,iljaskevic/terraform,grasshoppergroup/terraform,evalphobia/saas-ci-performance-compare-terraform,dgolja/terraform,chrisjharding/terraform,harijayms/terraform,dwradcliffe/terraform,displague/terraform,jhedev/terraform,hrach/hashicorp-terraform,donaldguy/terraform,samdunne/terraform,mbfrahry/terraform,taliesins/terraform,iljaskevic/terraform,appbricks/ab-terraform-build,kjmkznr/terraform,julia-stripe/terraform,dougneal/terraform,svanharmelen/terraform,gazoakley/terraform,jhedev/terraform,ericwestfall/terraform,PeteGoo/terraform,lusis/terraform,dtan4/terraform,kyhavlov/terraform,StephenWeatherford/terraform,mathematician/terraform,hashicorp/terraform,tmshn/terraform,bashtoni/terraform,whiskeyjay/terraform,cloudnautique/terraform,ericwestfall/terraform,lstolyarov/terraform,brandontosch/terraform,glerchundi/terraform,GrayCoder/terraform,maxenglander/terraform,tpounds/terraform,elblivion/terraform,kwilczynski/terraform,kl4w/terraform,heimweh/terraform,ddegoede/terraform,TheWeatherCompany/terraform,tpounds/terraform,hrach/hashicorp-terraform,hrach/hashicorp-terraform,golvteppe/terraform,ReleaseQueue/terraform,justnom/terraform,huydinhle/terraform,foragerr/terraform,JDiPierro/terraform,tombuildsstuff/terraform,10thmagnitude/terraform,Boran/terraform,PeteGoo/terraform,hashicorp/terraform,iansheridan/terraform,dgolja/terraform,pgray/terraform,brandontosch/terraform,taliesins/terraform,hooklift/terraform,hashicorp/terraform,cwood/terraform,bashtoni/terraform,Wambosa/terraform,mevansam/terraform,rhyas/terraform,GrayCoder/terraform,jrperritt/terraform