class ImageBuilder::Builders::AWS::Instance

Generic class doc comment

Attributes

account_id[RW]
bundle_destination[RW]
  • opt -

bundle_prefix[RW]
bundle_upload_command[RW]
bundle_vol_command[RW]
s3_bucket[RW]
x509_cert_path[RW]
x509_key_path[RW]
x509_upload_path[RW]

Public Class Methods

new() click to toggle source
Calls superclass method ImageBuilder::Builders::AWS::Base::new
# File lib/image_builder/builders/aws_instance.rb, line 19
def initialize
  super
  @type = 'amazon-instance'
end

Public Instance Methods

packer_hash() click to toggle source
# File lib/image_builder/builders/aws_instance.rb, line 24
def packer_hash
  hash = super

  # Required
  attr_to_hash(hash, :account_id, true)
  attr_to_hash(hash, :s3_bucket, true)
  attr_to_hash(hash, :x509_cert_path, true)
  attr_to_hash(hash, :x509_key_path, true)

  # Optional
  attr_to_hash(hash, :bundle_destination)
  attr_to_hash(hash, :bundle_prefix)
  attr_to_hash(hash, :bundle_upload_command)
  attr_to_hash(hash, :bundle_vol_command)
  attr_to_hash(hash, :x509_upload_path)

  hash
end