Method: Elasticity::InstanceGroup#to_aws_instance_config
- Defined in:
- lib/elasticity/instance_group.rb
#to_aws_instance_config ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/elasticity/instance_group.rb', line 59 def to_aws_instance_config { :market => @market, :instance_count => @count, :instance_type => @type, :instance_role => @role, }.tap do |config| config.merge!(:bid_price => @bid_price) if @market == 'SPOT' config.merge!(:ebs_configuration => @ebs_configuration.to_aws_ebs_config) if @ebs_configuration != nil end end |