terraform/builtin/providers
Jake Champlin fcec0a9f3d
provider/aws: Fix AMI creation from snapshot issue
Previously the AMI creation accepted a static value for the AMI's block device's volume size.
This change allows the user to omit the `volume_size` attribute, in order to mimic the AWS API behavior, which will use the EBS Volume's size.

Also fixes a potential panic case when setting `iops` on the AMI's block device.

The `aws_ami` resource previously didn't have any acceptance tests, adds two acceptance tests and a full testing suite for the `aws_ami` resource, so further tests can be written, as well as expansion upon the other `aws_ami_*` acceptance tests

```
$ make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSAMI_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/09 20:18:22 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSAMI_ -timeout 120m
=== RUN   TestAccAWSAMI_basic
--- PASS: TestAccAWSAMI_basic (44.21s)
=== RUN   TestAccAWSAMI_snapshotSize
--- PASS: TestAccAWSAMI_snapshotSize (45.08s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    89.320s
```
2017-02-09 20:30:26 -05:00
..
alicloud
archive adding (backwards compatible) support for providing multiple source filename and content (#11271) 2017-01-23 22:17:45 +00:00
atlas
aws provider/aws: Fix AMI creation from snapshot issue 2017-02-09 20:30:26 -05:00
azure
azurerm provider/azurerm: support import for load balancer and sub resources (#11610) 2017-02-01 17:17:51 +00:00
bitbucket
chef
clc
cloudflare
cloudstack Make the hash consistent again (#11546) 2017-01-31 15:00:11 +01:00
cobbler
consul
datadog
digitalocean
dme
dnsimple
docker
dyn
external
fastly provider/fastly Adds healthcheck service (#11709) 2017-02-07 11:34:58 +01:00
github
google Merge pull request #11650 from danawillow/google-container 2017-02-08 15:12:08 -08:00
grafana
heroku provider/heroku: Fix failing acceptance test (#11374) 2017-01-24 14:10:11 +02:00
icinga2
ignition provider/ignition: mount and path are mutually exclusive (#11409) 2017-01-27 21:28:42 +02:00
influxdb
librato
logentries
mailgun
mysql
newrelic
nomad provider/nomad: Update jobspec parser 2017-02-03 18:19:23 -05:00
ns1 provider/ns1/record: Fix "use_client_subnet". (#11368) 2017-01-29 16:45:13 +00:00
null
openstack Merge pull request #10271 from ljfranklin/PR-openstack-ssl-content 2017-02-08 22:11:31 -07:00
opsgenie provider/opsgenie: Descriptions for Teams (#11391) 2017-01-29 15:52:23 +00:00
packet
pagerduty provider/pagerduty: Fix tests (#11622) 2017-02-01 23:51:17 +00:00
postgresql fix wrong usage of hashicorp/errwrap (#11500) 2017-01-29 19:19:48 +00:00
powerdns
profitbricks Terraform provider ProfitBricks - Data Sources (#11520) 2017-02-02 13:26:14 +00:00
rabbitmq
rancher [Rancher] - allow for importing resources using environment ID to target (#11688) 2017-02-05 11:35:48 +01:00
random
rundeck
scaleway
softlayer
statuscake Fix statuscake test timeout schema (#11541) 2017-01-31 12:44:06 +00:00
template
terraform
test providers/test: additional testing via integration tests 2017-01-28 11:09:24 -08:00
tls
triton
ultradns
vault Merge pull request #11523 from 2uinc/vault-init-fix 2017-02-09 15:18:49 -05:00
vcd provider/vcd: Updated dependencies to use ukcloud/govcloudair (#11535) 2017-01-31 11:11:06 +00:00
vsphere Don't ignore VM power on errors. This prevents Terraform from hanging indefinitely for the VM to power on. (#11604) 2017-02-01 14:31:40 +00:00