terraform/builtin/providers
Paul Stack 9fc577547c provider/aws: Fix the panic in ssm_association with parameters (#12215)
Fixes: #12205

You cannot use an index of an empty slide therefore, we got a panic as follows:

```
aws_ssm_association.foo: Creating...
  instance_id:              "" => "i-002f3898dc95350e7"
  name:                     "" => "test_document_association-%s"
  parameters.%:             "" => "2"
  parameters.directoryId:   "" => "d-926720980b"
  parameters.directoryName: "" => "corp.mydomain.com"
Error applying plan:

1 error(s) occurred:

* aws_ssm_association.foo: 1 error(s) occurred:

* aws_ssm_association.foo: unexpected EOF

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
panic: runtime error: index out of range
2017/02/23 21:41:45 [DEBUG] plugin: terraform-provider-aws:
2017/02/23 21:41:45 [DEBUG] plugin: terraform-provider-aws: goroutine 1419 [running]:
2017/02/23 21:41:45 [DEBUG] plugin: terraform-provider-aws: panic(0x1567480, 0xc42000c110)
2017/02/23 21:41:45 [DEBUG] plugin: terraform-provider-aws: 	/usr/local/Cellar/go/1.7.4_1/libexec/src/runtime/panic.go:500 +0x1a1
```
2017-02-23 22:22:14 +02:00
..
alicloud
archive
arukas
atlas
aws provider/aws: Fix the panic in ssm_association with parameters (#12215) 2017-02-23 22:22:14 +02:00
azure
azurerm provider/azurerm: Bump AzureRM SDK to v8.0.1-beta (#11866) 2017-02-23 18:14:55 +02:00
bitbucket
chef
clc
cloudflare
cloudstack
cobbler
consul
datadog
digitalocean
dme
dns
dnsimple
docker
dyn
external
fastly
github
google
grafana
heroku
icinga2
ignition
influxdb
librato
logentries
mailgun
mysql
newrelic
nomad
ns1
null
openstack
opsgenie
packet
pagerduty Setting incident_urgency_rule as optional (#12211) 2017-02-23 21:35:45 +02:00
postgresql
powerdns
profitbricks provider/profitbricks: fmt changes post cherry-pick 2017-02-23 18:07:29 +02:00
rabbitmq
rancher
random
rundeck
scaleway
softlayer
spotinst provider/spotinst: Disallow passing an empty user_data string (#12179) 2017-02-22 23:25:03 +02:00
statuscake
template
terraform
test flatmap: mark computed list as a computed value in Expand 2017-02-23 10:03:59 -08:00
tls
triton
ultradns
vault
vcd
vsphere