Commit Graph

5490 Commits

Author SHA1 Message Date
Mitchell Hashimoto b0241541c2 Merge pull request #2264 from hashicorp/r-basic-resource-tests
acc tests: ensure each resource has a _basic test
2015-06-07 22:11:48 -07:00
Mitchell Hashimoto 2e9461ace7 Merge pull request #2266 from hashicorp/f-better-iam-policy-error-msgs
fix go vet issues
2015-06-07 22:11:27 -07:00
Mitchell Hashimoto aa1e66c16c config: parse lifecycle block with mapstructure for weak decode 2015-06-07 22:04:23 -07:00
Paul Hinze 18924d24fe command/apply: flatten multierrors
Before:

```
Error applying plan:

1 error(s) occurred:

* 1 error(s) occurred:

* 1 error(s) occurred:

* 1 error(s) occurred:

* Error creating ...
```

After:

```
Error applying plan:

1 error(s) occurred:

* Error creating ...
```

Muuuch better! :D
2015-06-07 21:32:00 -05:00
Paul Hinze f4f5139f22 provider/aws: improve iam_policy err msgs
Turns out `%s` outputs nicer than `%#v` here.

Closes #2247
2015-06-07 20:58:22 -05:00
Paul Hinze 84afeb73b1 acc tests: ensure each resource has a _basic test
Helpful for breadth first acc test sweeps `-run '_basic$'`
2015-06-07 18:18:14 -05:00
Paul Hinze 66c51d44f6 aws/provider convert _normal tests to _basic
For consistency!
2015-06-07 18:04:38 -05:00
Paul Hinze 112724fc39 provider/aws: spot_instance_request
This is an iteration on the great work done by @dalehamel in PRs #2095
and #2109.

The core team went back and forth on how to best model Spot Instance
Requests, requesting and then rejecting a separate-resource
implementation in #2109.

After more internal discussion, we landed once again on a separate
resource to model Spot Instance Requests. Out of respect for
@dalehamel's already-significant donated time, with this I'm attempting
to pick up the work to take this across the finish line.

Important architectural decisions represented here:

 * Spot Instance Requests are always of type "persistent", to properly
   match Terraform's declarative model.
 * The spot_instance_request resource exports several attributes that
   are expected to be constantly changing as the spot market changes:
   spot_bid_status, spot_request_state, and instance_id. Creating
   additional resource dependencies based on these attributes is not
   recommended, as Terraform diffs will be continually generated to keep
   up with the live changes.
 * When a Spot Instance Request is deleted/canceled, an attempt is made
   to terminate the last-known attached spot instance. Race conditions
   dictate that this attempt cannot guarantee that the associated spot
   instance is terminated immediately.

Implementation notes:

 * This version of aws_spot_instance_request borrows a lot of common
   code from aws_instance.
 * In order to facilitate borrowing, we introduce `awsInstanceOpts`, an
   internal representation of instance details that's meant to be shared
   between resources. The goal here would be to refactor ASG Launch
   Configurations to use the same struct.
 * The new aws_spot_instance_request acc. test is passing.
 * All aws_instance acc. tests remain passing.
2015-06-07 17:33:32 -05:00
Guillaume Giamarchi 8d26e10aba go fmt 2015-06-07 23:50:51 +02:00
Guillaume Giamarchi e04a6cacc5 Enpoint type configuration for OpenStack provider
Add the possibility to specify the endpoint type
(public, admin, internal). The default remains the
same (public).
2015-06-07 23:50:34 +02:00
Paul Hinze ed2a66a46a Merge pull request #2261 from nevir/patch-1
Fix page title for aws_elasticache_cluster
2015-06-07 14:47:48 -05:00
Ian MacLeod 20558fcf70 Fix page title for aws_elasticache_cluster 2015-06-07 12:42:38 -07:00
Paul Hinze 5f129f1b9d Update CHANGELOG.md 2015-06-07 09:07:00 -05:00
Paul Hinze c4bb9756e9 Merge pull request #2259 from AlexanderEkdahl/s3_website_endpoint_fix
Corrected Frankfurt S3 Website Endpoint
2015-06-07 09:06:27 -05:00
Alexander Ekdahl 52a21f3fb0 Corrected Frankfurt S3 Website Endpoint fixes #2258 2015-06-07 11:39:18 +02:00
George Hartzell 3a0ba422a8 Merge branch 'swift-remote' of https://github.com/hartzell/terraform into swift-remote 2015-06-06 10:25:44 -07:00
George Hartzell 4fc6dd0141 Only run Swift tests when Swift is available
Only run the Swift remote tests when OpenStack seems
to have been set up and when the autho host is reachable.
2015-06-06 10:19:25 -07:00
George Hartzell 258b1a4263 Implement OpenStack/Swift remote
Rework devcamcar's OpenStack Swift remote [pull
request](https://github.com/hashicorp/terraform/pull/942) to work with
Terraform's new `state/remote` and Gophercloud's current implementation.

`Get()` changed up a bit from devcamcar's version (using different
Gopercloud functionality resulted in less fussing around to figure out
the error case).

Otherwise this is a transliteration/remix of his ideas.
2015-06-06 10:04:31 -07:00
Chris Bednarski c852ac5d80 Merge pull request #2252 from ketzacoatl/patch-2
Minor correction to aws_s3_bucket docs
2015-06-05 16:40:21 -07:00
ketzacoatl 4bbe93552a Minor correction to aws_s3_bucket docs 2015-06-05 19:20:23 -04:00
Clint c26f01b78d Merge pull request #2251 from TimeIncOSS/asg-notification-docs
docs: Fix wrong title (aws_autoscaling_notification)
2015-06-05 16:53:32 -05:00
Radek Simko 2df0e734ae docs: Fix wrong title (aws_autoscaling_notification) 2015-06-05 23:47:50 +02:00
Clint e2cefe290d Merge pull request #2232 from justnom/master
Fixing bugs with `aws_network_interface` and added docs.
2015-06-05 16:24:14 -05:00
Chris Bednarski 71203d1ef9 Merge pull request #2249 from hashicorp/scaling-error
provider/aws: clarify scaling timeout error
2015-06-05 14:24:08 -07:00
Jack Pearkes 6c29671561 provider/aws: clarify scaling timeout error
This just gives the user a better hint to why their scaling may have timed out.
2015-06-05 17:14:21 -04:00
Clint f75488ed00 Update CHANGELOG.md 2015-06-05 16:04:59 -05:00
Clint e172508788 Merge pull request #2197 from hashicorp/f-aws-asg-notifications
provider/aws: ASG Notifications Resource
2015-06-05 16:04:19 -05:00
Clint Shryock f8eb5e4b11 clarify docs 2015-06-05 15:42:04 -05:00
Clint c02b53dadc Update CHANGELOG.md 2015-06-05 15:28:54 -05:00
Radek Simko 1770713633 Merge pull request #1803 from TimeIncOSS/ecs
aws: Add support for ECS (Container Service)
2015-06-05 22:25:41 +02:00
George Hartzell 9cfa1d5e5f Implement OpenStack/Swift remote
Rework devcamcar's OpenStack Swift remote [pull
request](https://github.com/hashicorp/terraform/pull/942) to work with
Terraform's new `state/remote` and Gophercloud's current implementation.

`Get()` changed up a bit from devcamcar's version (using different
Gopercloud functionality resulted in less fussing around to figure out
the error case).

Otherwise this is a transliteration/remix of his ideas.
2015-06-05 12:10:38 -07:00
Paul Hinze f7a309a8bf Update CHANGELOG.md 2015-06-05 13:13:05 -05:00
Paul Hinze 834fda764f Merge pull request #2234 from trumant/os_auth_token
Fixes #2212 by allowing OS_AUTH_TOKEN to set api_key config value
2015-06-05 13:12:17 -05:00
Paul Hinze 4ce65e5707 Update CHANGELOG.md 2015-06-05 13:11:07 -05:00
Paul Hinze 27c6b868eb Merge pull request #2246 from hashicorp/b-aws-elb-listeners-hash-case
provider/aws: fix case in ELB listener protocols
2015-06-05 13:02:13 -05:00
justnom 09bac2384e Adding `aws_network_interface` to sidebar. 2015-06-05 12:31:19 -04:00
Paul Hinze f65cce478b provider/aws: fix case in ELB listener protocols
fixes #2242
2015-06-05 10:20:07 -05:00
Clint Shryock 3858ee0ade add docs for asg notifications 2015-06-05 10:14:24 -05:00
Clint Shryock d65c8a421a refactor the internals of this 2015-06-05 10:00:39 -05:00
Clint Shryock 5e6b0166af provider/aws: Add ASG SNS Notification top level resource
- works with multiple asgs
2015-06-04 16:54:01 -05:00
Radek Simko 4bb63cbe65 Merge pull request #2238 from svend/func-comment
Use name of function in comment string
2015-06-04 21:19:42 +01:00
Svend Sorensen 943bf3c00a Use name of function in comment string
Name of function is Difference, not Differences.
2015-06-04 13:03:01 -07:00
Travis Truman 7fe29efc1d Fixes #2212 by allowing OS_AUTH_TOKEN to set api_key config value 2015-06-04 14:27:18 -04:00
Paul Hinze e2e2cd097e Merge pull request #2231 from svanharmelen/b-fixup-tests
provider/azure: update/fix the CheckDestroy functions in the tests
2015-06-04 11:15:30 -05:00
justnom aed17f8658 Fixing bugs with `aws_network_interface` and added docs.
When a user tried to create an `aws_network_interface` resource without specifying the `private_ips` or `security_groups` attributes the API call to AWS would fail with a 500 HTTP error. Length checks have been put in place for both of these attributes before they are added to the `ec2.CreateNetworkInterfaceInput` struct.

Documentation was also added for the `aws_network_interface` resource.
2015-06-04 11:44:33 -04:00
Sander van Harmelen 69736f67a6 Update/fix the CheckDestroy functions in the tests 2015-06-04 17:11:07 +02:00
Mitchell Hashimoto 132688a9a1 Merge pull request #2224 from joelhandwell/website
De-duplicate Openstack Provider sidebar entry
2015-06-04 16:16:09 +02:00
Mitchell Hashimoto 6f60913814 Update CHANGELOG.md 2015-06-04 16:15:54 +02:00
Mitchell Hashimoto 058e174c4d Merge pull request #2227 from juls/docker-privileged-option
provider/docker: Add privileged option
2015-06-04 16:15:16 +02:00
Sander van Harmelen 01f101f0e1 Merge pull request #2206 from svanharmelen/b-provisioner-chef
provisioner/chef: improve the decoding logic to prevent parameter not found errors
2015-06-04 15:50:47 +02:00