Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: fix root_block_device for odd AMIs #2271

Merged
merged 1 commit into from
Jun 23, 2015

Commits on Jun 23, 2015

  1. provider/aws: fix root_block_device for odd AMIs

    Some AMIs have a RootDeviceName like "/dev/sda1" that does not appear as a
    DeviceName in the BlockDeviceMapping list (which will instead have
        something like "/dev/sda")
    
    While this seems like it breaks an invariant of AMIs, it ends up working
    on the AWS side, and AMIs like this are common enough that we need to
    special case it so Terraform does the right thing.
    
    Our heuristic is: if the RootDeviceName does not appear in the
    BlockDeviceMapping, assume that the DeviceName of the first
    BlockDeviceMapping entry serves as the root device.
    
    fixes #2224
    phinze committed Jun 23, 2015
    Configuration menu
    Copy the full SHA
    020dc03 View commit details
    Browse the repository at this point in the history