terraform/builtin/providers
Paul Stack 31b8cde45c provider/aws: Support Import `aws_dynamodb_table` (#7352)
There were some changes required to the Read func to get this working.
The initial set of tests showed the following:

```
testing.go:255: Step 1 error: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.

        (map[string]string) {
        }

        (map[string]string) (len=8) {
         (string) (len=8) "hash_key": (string) (len=16) "TestTableHashKey",
         (string) (len=23) "local_secondary_index.#": (string) (len=1) "1",
         (string) (len=36) "local_secondary_index.884610231.name": (string) (len=12) "TestTableLSI",
         (string) (len=52) "local_secondary_index.884610231.non_key_attributes.#": (string) (len=1) "0",
         (string) (len=47) "local_secondary_index.884610231.projection_type": (string) (len=3) "ALL",
         (string) (len=41) "local_secondary_index.884610231.range_key": (string) (len=15) "TestLSIRangeKey",
         (string) (len=4) "name": (string) (len=38) "TerraformTestTable-2710929679033484576",
         (string) (len=9) "range_key": (string) (len=17) "TestTableRangeKey"
        }
```

On investigation, this was telling me that `hash_key`, `range_key`, `name` and `local_secondary_index` were not being set on the Read func

When they were being set, all looks as expected:

```
make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSDynamoDbTable_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSDynamoDbTable_ -timeout 120m
=== RUN   TestAccAWSDynamoDbTable_importBasic
--- PASS: TestAccAWSDynamoDbTable_importBasic (20.39s)
=== RUN   TestAccAWSDynamoDbTable_basic
--- PASS: TestAccAWSDynamoDbTable_basic (39.99s)
=== RUN   TestAccAWSDynamoDbTable_streamSpecification
--- PASS: TestAccAWSDynamoDbTable_streamSpecification (50.44s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	110.841s
```
2016-07-25 15:31:00 +01:00
..
atlas Add VersionString 2016-07-21 16:43:49 -04:00
aws provider/aws: Support Import `aws_dynamodb_table` (#7352) 2016-07-25 15:31:00 +01:00
azure provider/azure: Fix management client upgrade 2016-06-01 20:01:31 -05:00
azurerm Add VersionString 2016-07-21 16:43:49 -04:00
chef
clc
cloudflare provider/cloudflare: Add migration for v1 to v4 API libraries (#6969) 2016-06-07 14:29:25 -05:00
cloudstack Fix dynamically determining if `ForceNew = true` (#7745) 2016-07-21 15:23:58 +02:00
cobbler
consul
datadog provider/datadog: add timeboard resource. upgrade vendored go-datadog-api to support read-only option. (#6900) 2016-06-15 18:44:49 +02:00
digitalocean provider/digitalocean: adds a volume resource (#7560) 2016-07-13 15:36:37 +01:00
dme
dnsimple
docker Add `destroy_grace_seconds` option to stop container before delete (#7513) 2016-07-11 16:03:02 +01:00
dyn
fastly provider/fastly: Update go-fastly SDK (#7747) 2016-07-21 14:10:33 -05:00
github
google Add VersionString 2016-07-21 16:43:49 -04:00
grafana
heroku
influxdb
librato
logentries provider/logentries: Implementing logentries provider (#7067) 2016-07-12 14:14:39 +01:00
mailgun
mysql provider/mysql: Empty Provider Credentials Caused Panic 2016-06-17 11:32:30 +01:00
null
openstack Merge pull request #7649 from jtopjian/openstack-boot-volume-fix 2016-07-20 08:23:09 -06:00
packet
postgresql
powerdns
random
rundeck
scaleway provider/scaleway: Expose IPv6 support, improve documentation (#7784) 2016-07-25 12:49:09 +01:00
softlayer
statuscake
template provider/template: validate vars are primitives 2016-07-11 16:01:05 -05:00
terraform provider/template: convert resources to data sources 2016-07-08 17:11:17 +01:00
test terraform: another set of ignore_changes fixes 2016-07-08 16:48:23 -05:00
tls Convert tls_cert_request to be a data source 2016-07-02 08:07:53 -07:00
triton Merge branch 'b-triton-dot-in-tags' of https://github.com/zeroae/terraform into zeroae-b-triton-dot-in-tags 2016-07-12 15:06:47 -06:00
ultradns
vcd
vsphere vSphere Provider - Fix destroy when vm is powered off or has networks (#7206) 2016-07-12 09:05:02 +01:00