class Kitchen::Driver::Aws::StandardPlatform::Amazon2023
docs.aws.amazon.com/linux/al2023/release-notes/relnotes.html
Public Class Methods
from_image(driver, image)
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/amazon2023.rb, line 41 def self.from_image(driver, image) return unless /al2023-ami/i.match?(image.name) image.name =~ /\b(\d+(\.\d+[\.\d])?)/i new(driver, "amazon2023", (Regexp.last_match || [])[1], image.architecture) end
Public Instance Methods
image_search()
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/amazon2023.rb, line 32 def image_search search = { "owner-id" => "137112412989", "name" => version ? "al2023-ami-2023.0.#{version}*" : "al2023-ami-2023.0.*", } search["architecture"] = architecture if architecture search end
username()
click to toggle source
default username for this platform’s ami @return [String]
# File lib/kitchen/driver/aws/standard_platform/amazon2023.rb, line 28 def username "ec2-user" end