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

Update for GP3 Support #525

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/kitchen/driver/aws/standard_platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ def sort_images(images)
images = images.sort_by(&:creation_date).reverse
# P5: We prefer x86_64 over i386 (if available)
images = prefer(images) { |image| image.architecture == "x86_64" }
# P4: We prefer gp2 (SSD) (if available)
# P4: We prefer (SSD) (if available)
images = prefer(images) do |image|
image.block_device_mappings.any? do |b|
b.device_name == image.root_device_name && b.ebs && b.ebs.volume_type == "gp2"
b.device_name == image.root_device_name && b.ebs && %w{gp3 gp2}.any? { |t| b.ebs.volume_type == t }
end
end
# P3: We prefer ebs over instance_store (if available)
Expand Down