terraform/builtin/providers
stack72 db432ad765 provider/aws: Adding IPv6 address to instance causes perpetual diff
Fixes: #14032

When you are using an IPv6 address directly to an instance, it was
causing the ipv6_address_count to try and ForceNew resource. It wasn't
marked as computed

I was able to see this here:

```
-/+ aws_instance.test
    ami:                          "ami-c5eabbf5" => "ami-c5eabbf5"
    associate_public_ip_address:  "false" => "<computed>"
    availability_zone:            "us-west-2a" => "<computed>"
    ebs_block_device.#:           "0" => "<computed>"
    ephemeral_block_device.#:     "0" => "<computed>"
    instance_state:               "running" => "<computed>"
    instance_type:                "t2.micro" => "t2.micro"
    ipv6_address_count:           "1" => "0" (forces new resource)
    ipv6_addresses.#:             "1" => "1"
    ipv6_addresses.0:             "2600:1f14:bb2:e501::10" => "2600:1f14:bb2:e501::10"
    key_name:                     "" => "<computed>"
    network_interface.#:          "0" => "<computed>"
    network_interface_id:         "eni-d19115ec" => "<computed>"
    placement_group:              "" => "<computed>"
    primary_network_interface_id: "eni-d19115ec" => "<computed>"
    private_dns:                  "ip-10-20-1-252.us-west-2.compute.internal" => "<computed>"
    private_ip:                   "10.20.1.252" => "<computed>"
    public_dns:                   "" => "<computed>"
    public_ip:                    "" => "<computed>"
    root_block_device.#:          "1" => "<computed>"
    security_groups.#:            "0" => "<computed>"
    source_dest_check:            "true" => "true"
    subnet_id:                    "subnet-3fdfb476" => "subnet-3fdfb476"
    tags.%:                       "1" => "1"
    tags.Name:                    "stack72" => "stack72"
    tenancy:                      "default" => "<computed>"
    volume_tags.%:                "0" => "<computed>"
    vpc_security_group_ids.#:     "1" => "<computed>"
```

It now works as expected:

```
% terraform plan                                                                                 ✹ ✭
[WARN] /Users/stacko/Code/go/bin/terraform-provider-aws overrides an internal plugin for aws-provider.
  If you did not expect to see this message you will need to remove the old plugin.
  See https://www.terraform.io/docs/internals/internal-plugins.html
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

aws_vpc.foo: Refreshing state... (ID: vpc-fa61669d)
aws_subnet.foo: Refreshing state... (ID: subnet-3fdfb476)
aws_internet_gateway.foo: Refreshing state... (ID: igw-70629a17)
aws_route_table.test: Refreshing state... (ID: rtb-0a52e16c)
aws_instance.test: Refreshing state... (ID: i-0971755345296aca5)
aws_route_table_association.a: Refreshing state... (ID: rtbassoc-b12493c8)
No changes. Infrastructure is up-to-date.

This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, Terraform
doesn't need to do anything.
```
2017-05-10 18:39:20 +03:00
..
alicloud provider/alicloud: Add new resource ESS, including scalinggroup scalingconfiguration scalingrule and schedule (#13731) 2017-04-18 15:18:57 +03:00
archive
arukas
atlas
aws provider/aws: Adding IPv6 address to instance causes perpetual diff 2017-05-10 18:39:20 +03:00
azure
azurerm Improve tests and documentation for azurerm_template_deployment outputs (#13567) 2017-05-05 17:51:59 +01:00
bitbucket Refactoring of bitbucket provider with betters. 2017-04-05 12:09:43 -07:00
chef
circonus provider/circonus: Remove ValidateFunc from Computed-only field 2017-04-23 12:40:17 +02:00
clc
cloudflare
cloudstack provider/cloudstack: do not force a new resource when updating load balancer members (#11786) 2017-04-05 15:34:35 +02:00
cobbler
consul provider/consul: Remove ValidateFunc from Computed-only fields 2017-04-23 12:40:58 +02:00
datadog
digitalocean provider/digitalocean: prevent new resources when using ID's of images with slugs (#13879) 2017-04-27 18:48:58 +01:00
dme provider/dme: Save records in lowercase to avoid diffs (#14130) 2017-05-02 06:36:16 +01:00
dns unless id is set, txt record set is not available 2017-05-07 11:53:26 -04:00
dnsimple Make dnsimple_records importable (#9130) 2017-04-27 02:07:23 +12:00
docker
dyn Add verbose Dyn provider logs (#14076) 2017-05-06 01:24:14 +02:00
external
fastly Makes cache setting condition optional in fastly service 2017-04-30 17:16:06 -03:00
github Clears branch protection from state only if error is an HTTP 404 (#13887) 2017-04-24 18:19:27 +01:00
gitlab provider/gitlab: Adding default values to gitlab_project_hook resource 2017-05-04 19:59:32 +03:00
google provider/google: Handle all 404 checks in read functions via the new function 2017-05-10 14:50:19 +03:00
grafana
heroku providers/heroku: import heroku_app resource (#14248) 2017-05-05 22:26:04 +03:00
http http provider and http request data source 2017-05-08 17:37:48 -07:00
icinga2
ignition ignition: internal cache moved to global, instead per provider instance 2017-04-23 20:32:04 +02:00
influxdb
kubernetes provider/kubernetes: Add support for limit_range (#14285) 2017-05-09 05:07:17 +02:00
librato
local provider/local: Implement a new local_file resource 2017-04-13 14:57:29 -07:00
logentries provider/logentries: Refresh from state when resources not found (#13810) 2017-04-20 21:38:37 +03:00
mailgun
mysql
newrelic Update go-newrelic vendor and use new field (#13158) 2017-04-17 01:59:11 +03:00
nomad provider/nomad: Update Nomad provider tests 2017-05-04 15:52:55 -04:00
ns1 provider/ns1: record documentation improvements (#13786) 2017-04-21 12:38:05 +03:00
null
oneandone Provider Oneandone (#13633) 2017-04-21 17:19:10 +03:00
opc refactor the read 2017-04-26 09:25:10 -06:00
openstack provider/openstack: Handle disassociating FloatingIP's from a server 2017-05-04 20:23:02 +01:00
opsgenie
packet
pagerduty
postgresql Merge pull request #11452 from pbthorste/master 2017-05-02 11:41:26 -04:00
powerdns
profitbricks Private images Fix (#14173) 2017-05-03 22:29:03 +03:00
rabbitmq provider/rabbitmq: Add test for binding properties_key (#13797) 2017-04-21 20:01:46 +03:00
rancher provider/rancher: Remove DiffSuppressFunc from Computed-only fields 2017-04-23 12:41:18 +02:00
random
rundeck
scaleway provider/scaleway: improve schema resources (#13522) 2017-04-11 11:10:45 +03:00
softlayer
spotinst
statuscake Add support for StatusCake trigger rate 2017-04-10 15:38:26 +03:00
template provider/template: template_dir explicitly create dest dir 2017-04-25 10:48:26 -07:00
terraform
test core: Restore CountBoundaryTransformer to apply, add/adjust tests 2017-04-19 22:23:52 -07:00
tls
triton provider/triton: Add `insecure_skip_tls_verify` 2017-04-28 11:56:26 -07:00
ultradns use validation helper 2017-04-25 20:06:33 +00:00
vault provider/vault: vault_auth_backend resource (#10988) 2017-05-03 22:43:10 +03:00
vcd
vsphere