-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters