class Kitchen::Driver::Aws::StandardPlatform::Amazon2
Public Class Methods
Source
# File lib/kitchen/driver/aws/standard_platform/amazon2.rb, line 41 def self.from_image(driver, image) return unless /amzn2-ami/i.match?(image.name) image.name =~ /\b(\d+(\.\d+[\.\d])?)/i new(driver, "amazon2", (Regexp.last_match || [])[1], image.architecture) end
Public Instance Methods
Source
# File lib/kitchen/driver/aws/standard_platform/amazon2.rb, line 32 def image_search search = { "owner-id" => "137112412989", "name" => version ? "amzn2-ami-hvm-2.0.#{version}*" : "amzn2-ami-hvm-2.0.*", } search["architecture"] = architecture if architecture search end
Source
# File lib/kitchen/driver/aws/standard_platform/amazon2.rb, line 28 def username "ec2-user" end
default username for this platform’s ami @return [String]