class Kitchen::Driver::Aws::StandardPlatform::Amazon

aws.amazon.com/amazon-linux-ami/

Public Class Methods

from_image(driver, image) click to toggle source
# File lib/kitchen/driver/aws/standard_platform/amazon.rb, line 41
def self.from_image(driver, image)
  return unless /amzn-ami/i.match?(image.name)

  image.name =~ /\b(\d+(\.\d+[\.\d])?)/i
  new(driver, "amazon", (Regexp.last_match || [])[1], image.architecture)
end

Public Instance Methods

username() click to toggle source

default username for this platform’s ami @return [String]

# File lib/kitchen/driver/aws/standard_platform/amazon.rb, line 28
def username
  "ec2-user"
end