Skip to content

Commit

Permalink
providers/aws: rework instance block devices
Browse files Browse the repository at this point in the history
Instance block devices are now managed by three distinct sub-resources:

 * `root_block_device` - introduced previously
 * `ebs_block_device` - all additional ebs-backed volumes
 * `ephemeral_block_device` - instance store / ephemeral devices

The AWS API support around BlockDeviceMapping is pretty confusing. It's
a single collection type that supports these three members each of which
has different fields and different behavior.

My biggest hiccup came from the fact that Instance Store volumes do not
show up in any response BlockDeviceMapping for any EC2 Describe* AWS API
calls. They're only available from the instance meta-data service as
queried from inside the node.

Also note this removes `block_device` altogether for a clean break from
old configs.  New configs will need to sort their `block_device`
declarations into the three new types.

Fixes #858
  • Loading branch information
phinze committed Mar 13, 2015
1 parent 9654f2f commit 9c5bbe6
Show file tree
Hide file tree
Showing 2 changed files with 304 additions and 93 deletions.
Loading

0 comments on commit 9c5bbe6

Please sign in to comment.