NAME
as-create-launch-config - Creates a new launch configuration.SYNOPSIS
as-create-launch-config
LaunchConfigurationName --image-id value --instance-type value
[ --block-device-mapping "key1=value1,key2=value2..." ]
[ --iam-instance-profile value ]
[ --monitoring-enabled/monitoring-disabled ] [--kernel value ] [--key
value ] [ --ramdisk value ] [--group value[,value...] ] [--spot-price
value ] [ --user-data value ] [--user-data-file value ]
[General Options]
DESCRIPTION
Creates a new launch configuration with specified attributes.
ARGUMENTS
LaunchConfigurationName
User-supplied launch configuration identifier which will uniquely
identify the configuration. You can also set this value using
" --launch-config". Required.
SPECIFIC OPTIONS
--block-device-mapping "key1=value1,key2=value2..."
List of block device mapping specifications. Each block device mapping
has two items: a device, and either a virtual device or an EBS snapshot
configuration. Examples:
'/dev/sdb=snap-7eb96d16'
'/dev/sdc=snap-7eb96d16:80'
'/dev/sdd=:120'
'/dev/sde=virtual-device'.
--group VALUE1,VALUE2,VALUE3...
Security groups with which to associate the Amazon EC2 instances. Note
that Amazon VPC security groups and Amazon EC2 security groups are
mutually exclusive and can't be used together. Either all group names or
all group ids are acceptable, but not both.
-i, --image-id VALUE
Unique ID of the Amazon Machine Image (AMI) assigned during registration.
Required.
--iam-instance-profile VALUE
IAM Instance Identity Profile to use as the Runas User for the instances.
--kernel VALUE
ID of the kernel associated with the Amazon EC2 AMI.
--key VALUE
Name of the Amazon EC2 key pair.
--monitoring-enabled, --monitoring-disabled
Flag that enables/disables instance monitoring. The default value is
'true'.
--ramdisk VALUE
ID of the RAM disk associated with the Amazon EC2 AMI.
--spot-price VALUE
The maximum hourly price for any Spot Instance launched.
-t, --instance-type VALUE
Amazon EC2 instance type to launch. Required.
--user-data VALUE
The data to make available to the instance. The data must be specified
as a string on the command line. To upload data from a file see the
' --user-data-file' option.
--user-data-file VALUE
The name of the file containing user data for the instance.
GENERAL OPTIONS
--aws-credential-file VALUE
Location of the file with your AWS credentials. This value can be set by
using the environment variable 'AWS_CREDENTIAL_FILE'.
-C, --ec2-cert-file-path VALUE
Path to the file holding the X.509 certificate. This value can be set by
using the environment variable 'EC2_CERT'.
--connection-timeout VALUE
Connection timeout (in seconds). The default value is '30'.
--delimiter VALUE
The delimiter to use when displaying delimited (long) results.
-H, --headers
For displaying tabular or delimited results, it includes the column
headers. For displaying XML results, it returns the HTTP headers from the
service request, if applicable. This is off by default.
-I, --access-key-id VALUE
The AWS access ID to use.
-K, --ec2-private-key-file-path VALUE
Path to the file holding the X.509 private key. This value can be set by
using the environment variable 'EC2_PRIVATE_KEY'.
--region VALUE
Amazon EC2 region to use. This value can be set by using the environment
variable 'EC2_REGION'.
-S, --secret-key VALUE
The AWS Secret Key to use.
--show-empty-fields
Shows empty fields and rows, using a (nil) value. The default is to not
show empty fields or columns.
--show-request
Displays the URL the tools used to call the AWS Service. The default
value is 'false'.
--show-table, --show-long, --show-xml, --quiet
The way in which the results are displayed: tabular, delimited (long),
XML or no output (quiet). Tabular shows a subset of the data in fixed
column-width form, while long shows all of the returned values delimited
by a character, XML is the raw return from the service and quiet
suppresses all standard output. The default is tabular, or 'show-table'.
-U, --url VALUE
This option will override the URL for the service call with VALUE. This
value can be set by using the environment variable
'AWS_AUTO_SCALING_URL'.
INPUT EXAMPLES
Create a launch configuration with name 'lc' to launch 'm1.small' type
instances with imageId 'ami-f7c5219e'.
$PROMPT> as-create-launch-config lc --image-id ami-f7c5219e --instance-type m1.small
Create a launch configuration with name 'lc' and other attributes.
$PROMPT2> as-create-launch-config lc --image-id ami-f7c5219e --instance-type m1.small --key key-name --group group --user-data userdata --kernel kernel --ramdisk ramdisk --block-device-mapping "device1=virtual1","device2=snap-1234:100"
Create a launch configuration with vpc security group sg-12345678. Please
note that VPC security groups must be specified by the group id.
$PROMPT2> as-create-launch-config lc --image-id ami-f7c5219e --instance-type m1.small --key key-name --group sg-12345678 --user-data userdata --kernel kernel --ramdisk ramdisk --block-device-mapping "device1=virtual1","device2=snap-1234:100"
Create a launch configuration with name 'lc' to launch 'm1.small' type
instances with imageId 'ami-f7c5219e' and spot price "0.04".
$PROMPT> as-create-launch-config lc --image-id ami-f7c5219e --instance-type m1.small --spot-price 0.04
SEE ALSO
http://docs.amazonwebservices.com/AutoScaling//DeveloperGuide/
http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/
1.0.61.0 api= | Auto Scaling command line tools |