terraform/builtin/providers
Paul Stack 4fe7ee16e6 provider/aws: Migrate the state for AWS VPC after IPv6 changes (#13041)
Fixes: #13035

It was pointed out in the issue that the addition of a new parameter
with a default value AND a ForceNew: true is causing Terraform to try
and recreate the VPC

This PR migrates the state to add the default value of false for `assign_generated_ipv6_cidr_block`

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAWSVpcMigrateState'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/24 12:51:41 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAWSVpcMigrateState -timeout 120m
=== RUN   TestAWSVpcMigrateState
2017/03/24 12:52:26 [INFO] Found AWS VPC State v0; migrating to v1
2017/03/24 12:52:26 [DEBUG] Attributes before migration: map[string]string{"assign_generated_ipv6_cidr_block":"true"}
2017/03/24 12:52:26 [DEBUG] Attributes after migration: map[string]string{"assign_generated_ipv6_cidr_block":"false"}
2017/03/24 12:52:26 [INFO] Found AWS VPC State v0; migrating to v1
2017/03/24 12:52:26 [DEBUG] Attributes before migration: map[string]string{}
2017/03/24 12:52:26 [DEBUG] Attributes after migration: map[string]string{"assign_generated_ipv6_cidr_block":"false"}
--- PASS: TestAWSVpcMigrateState (0.00s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	0.024s
```
2017-03-24 13:02:11 +02:00
..
alicloud alicloud: simplify validators (#12982) 2017-03-23 10:57:11 +02:00
archive
arukas provider/arukas: Increase timeout to 15mins & use standard helper (#12849) 2017-03-19 18:55:11 +00:00
atlas
aws provider/aws: Migrate the state for AWS VPC after IPv6 changes (#13041) 2017-03-24 13:02:11 +02:00
azure
azurerm provider/azurerm: Add support for setting the primary network interface (#11290) 2017-03-23 16:42:01 +00:00
bitbucket
chef
circonus Consolidate all testing tags to `lifecycle:unittest`. (#12994) 2017-03-23 09:12:19 +00:00
clc
cloudflare
cloudstack Add params zone_id to cloudstack ipaddress resource (#11306) 2017-03-21 12:02:38 +01:00
cobbler
consul feat(consul): add basic auth to consul provider (#12679) 2017-03-20 13:00:44 +00:00
datadog datadog: Fix incorrect schema of monitor for 'silenced' (#12720) 2017-03-15 15:01:49 +00:00
digitalocean
dme
dns Convert dns data tests to acceptance tests 2017-03-17 12:07:29 -04:00
dnsimple Allow dnsimple_record.priority attribute to be set (#12843) 2017-03-18 13:04:48 +00:00
docker
dyn
external
fastly Add Fastly SSL validation fields (#12578) 2017-03-13 20:49:39 +02:00
github provider/github: add repository_webhook resource (#12924) 2017-03-23 11:21:45 +02:00
google provider/google: turn compute_instance_group.instances into a set (#12790) 2017-03-22 17:47:41 -07:00
grafana
heroku
icinga2
ignition ignition_filesystem: explicit option to create the filesystem (Fix #12152) (#12980) 2017-03-23 11:02:54 +02:00
influxdb
kubernetes kubernetes: Add config_map resource (#12753) 2017-03-16 14:51:01 +00:00
librato librato: Work around eventual consistency of the API (#12816) 2017-03-17 16:52:38 +00:00
logentries
mailgun
mysql MySQL Provider does not recreate user if user got deleted manually in MySQL (#12791) 2017-03-18 13:15:01 +00:00
newrelic
nomad
ns1 provider/ns1: Ensure provider checks for credentials (#12920) 2017-03-23 12:00:56 +02:00
null
openstack provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
opsgenie
packet provider/packet: Update ssh-key resource test to run in parallel better 2017-03-14 11:11:57 -04:00
pagerduty provider/pagerduty: Validate credentials (#12854) 2017-03-19 17:37:46 +00:00
postgresql
powerdns
profitbricks panic_prevention (#12819) 2017-03-17 18:27:21 +00:00
rabbitmq
rancher Add rancher_certificate resource type (#12717) 2017-03-15 16:22:34 +02:00
random
rundeck
scaleway Added schema to expose public IPv6 (#12748) 2017-03-16 20:00:30 +01:00
softlayer
spotinst
statuscake
template
terraform
test
tls
triton
ultradns
vault
vcd
vsphere