Class | AWS::AutoScaling::LaunchConfigurationCollection |
In: |
lib/aws/auto_scaling/launch_configuration_collection.rb
|
Parent: | Object |
Creates an Auto Scaling launch configuration.
auto_scaling.launch_configurations.create('name', 'ami-12345', 'm1.small')
@param [String] name The name of the launch configuration to create.
@param [EC2::Image,String] image An {EC2::Image} or image id string.
@param [String] instance_type The type of instance (e.g.
't1.micro', 'm1.small', 'm2.4xlarge', etc).
@param [Hash] options
@option options [Array<Hash>] :block_device_mappings
@option options [Boolean] :detailed_instance_monitoring (true)
When enabled, CloudWatch will generate metrics every minute and your account will be charged a fee. When you disable detailed monitoring, by specifying False, Cloudwatch will generate metrics every 5 minutes.
@option options [String] :kernel_id The ID of the kernel to
launch the instances with.
@option options [KeyPair,String] :key_pair The keypair to launch
instances with. This may be an {EC2::KeyPair} object or or key pair name string.
@option options [String] :ramdisk_id The ID of the ramdisk to
launch the instances with.
@option options [Array<EC2::SecurityGroup>,Array<String>] :security_groups
The list of security groups to associate with the instances. This may be an array of {EC2::SecurityGroup} objects, security group names or security group ids.
@option options [String] :user_data The user data available to
the launched Amazon EC2 instances.
@option options [String] :iam_instance_profile
@option options [String] :spot_price
@option options [Boolean] :associate_public_ip_address
Used for Auto Scaling groups that launch instances into an Amazon Virtual Private Cloud (Amazon VPC). Specifies whether to assign a public IP address to each instance launched in a Amazon VPC.
@return [LaunchConfiguration]