lib/aws-sdk-autoscaling/fleet.rb
# Creates a new launch configuration and applies it to all the
# Auto Scaling groups in the fleet. Any options not specified will
# be pulled from the Launch Configuration currently attached to
# the template Auto Scaling group.
#
# @param [String] name The name of the new launch configuration
#
# @param [Hash] options Options for the new launch configuration.
#   Any options not specified in this hash will be pulled from the
#   existing launch configuration on the template scaling group.
#
Creates a new launch configuration and applies it to all the
Auto Scaling groups in the fleet. Any options not specified will
be pulled from the Launch Configuration currently attached to
the template Auto Scaling group.
Creates a new launch configuration and applies it to all the Auto Scaling groups in the fleet . Any options not specified will be pulled from the Launch Configuration currently attached to the template Auto Scaling group .
def update_launch_configuration name, options = {}
      old_lc = template_or_any_group.launch_configuration
      options = Fleet.options_from(old_lc,
        :image_id, :instance_type,
        :block_device_mappings, :instance_monitoring, :kernel_id,
        :key_name, :ramdisk_id, :security_groups, :user_data,
        :iam_instance_profile, :spot_price).merge(options)
      options[:launch_configuration_name] = name
      @client.create_launch_configuration(options)
      groups.each do |group|
        next unless group.launch_template.nil?
        next unless group.mixed_instances_policy.nil?
        group.update(:launch_configuration_name => name)
      end
      LaunchConfiguration.new(name: name, client: @client)
    end
def update_launch_configuration name , options = { } old_lc = template_or_any_group . launch_configuration options = Fleet . options_from ( old_lc , :image_id , :instance_type , :block_device_mappings , :instance_monitoring , :kernel_id , :key_name , :ramdisk_id , :security_groups , :user_data , :iam_instance_profile , :spot_price ) . merge ( options ) options [ :launch_configuration_name ] = name @client . create_launch_configuration ( options ) groups . each do | group | next unless group . launch_template . nil? next unless group . mixed_instances_policy . nil? group . update ( :launch_configuration_name => name ) end LaunchConfiguration . new ( name : name , client : @client ) end
Creates a new launch configuration and applies it to all the
Auto Scaling groups in the fleet.
Creates a new launch configuration and applies it to all the Auto Scaling groups in the fleet .
name
options
options Options for the new launch configuration. Any options not specified in this hash will be pulled from the existing launch configuration on the template scaling group.
options Options for the new launch configuration . Any options not specified in this hash will be pulled from the existing launch configuration on the template scaling group .