Class: Packer::Builder::Amazon::Instance
Constant Summary
Packer::Builder::AMAZON_EBS, Packer::Builder::AMAZON_INSTANCE, DOCKER, NULL, VALID_BUILDER_TYPES, VIRTUALBOX_ISO
Instance Attribute Summary
Attributes inherited from DataObject
#data, #required
Instance Method Summary
collapse
#access_key, #ami_block_device_mappings, #ami_description, #ami_groups, #ami_name, #ami_product_codes, #ami_regions, #ami_users, #ami_virtualization_type, #associate_public_ip_address, #availability_zone, #enhanced_networking, #iam_instance_profile, #instance_type, #launch_block_device_mappings, #region, #run_tags, #secret_key, #security_group_id, #security_group_ids, #source_ami, #ssh_port, #ssh_private_key_file, #ssh_timeout, #ssh_username, #subnet_id, #tags, #temporary_key_pair_name, #user_data, #user_data_file, #vpc_id
get_builder, #name, types
Methods inherited from DataObject
#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_string, #__exclusive_key_error, #add_required, #deep_copy, #validate
Constructor Details
Returns a new instance of Instance.
151
152
153
154
155
156
157
158
159
160
|
# File 'lib/packer/builders/amazon.rb', line 151
def initialize
super
self.data['type'] = AMAZON_INSTANCE
self.add_required(
'account_id',
's3_bucket',
'x509_cert_path',
'x509_key_path'
)
end
|
Instance Method Details
#account_id(id) ⇒ Object
162
163
164
|
# File 'lib/packer/builders/amazon.rb', line 162
def account_id(id)
self.__add_string('account_id', id)
end
|
#bundle_destination(directory) ⇒ Object
178
179
180
|
# File 'lib/packer/builders/amazon.rb', line 178
def bundle_destination(directory)
self.__add_string('bundle_destination', directory)
end
|
#bundle_prefix(prefix) ⇒ Object
182
183
184
|
# File 'lib/packer/builders/amazon.rb', line 182
def bundle_prefix(prefix)
self.__add_string('bundle_prefix', prefix)
end
|
#bundle_upload_command(command) ⇒ Object
186
187
188
|
# File 'lib/packer/builders/amazon.rb', line 186
def bundle_upload_command(command)
self.__add_string('bundle_upload_command', command)
end
|
#bundle_vol_command(command) ⇒ Object
190
191
192
|
# File 'lib/packer/builders/amazon.rb', line 190
def bundle_vol_command(command)
self.__add_string('bundle_vol_command', command)
end
|
#s3_bucket(bucket) ⇒ Object
166
167
168
|
# File 'lib/packer/builders/amazon.rb', line 166
def s3_bucket(bucket)
self.__add_string('s3_bucket', bucket)
end
|
#x509_cert_path(path) ⇒ Object
170
171
172
|
# File 'lib/packer/builders/amazon.rb', line 170
def x509_cert_path(path)
self.__add_string('x509_cert_path', path)
end
|
#x509_key_path(path) ⇒ Object
174
175
176
|
# File 'lib/packer/builders/amazon.rb', line 174
def x509_key_path(path)
self.__add_string('x509_key_path', path)
end
|
#x509_upload_path(path) ⇒ Object
194
195
196
|
# File 'lib/packer/builders/amazon.rb', line 194
def x509_upload_path(path)
self.__add_string('x509_upload_path', path)
end
|