Sie sind auf Seite 1von 3

Auto Scaling (Version 2011-01-01)

Quick Reference Card, Page 1

Auto Scaling Groups Launch Configurations

as-create-auto-scaling-group as-update-auto-scaling-group as-create-launch-config


Creates a new Auto Scaling group with specified name Updates specified Auto Scaling groups with attributes. Creates a new launch configuration with specified
and other attributes. as-update-auto-scaling-group attributes.
as-create-auto-scaling-group AutoScalingGroupName as-create-launch-config
AutoScalingGroupName [--availability-zones value[,value...] ] LaunchConfigurationName
--image-id value --instance-type value
--availability-zones value[,value ] [--default-cooldown value ]
[--associate-public-ip-address value ]
--launch-configuration value [--desired-capacity value ] [--block-device-mapping "key1=value1,
--max-size value --min-size value [--grace-period value ] key2=value2..." ]
[--instance-id value] [--health-check-type value ] [--ebs-optimized value]
[--default-cooldown value] [--launch-configuration value ] [--group value[,value...] ]
[--desired-capacity value] [--max-size value ] [--iam-instance-profile value ]
[--grace-period value] [--min-size value] [--instance-id value ]
[--health-check-type value] [--placement-group value ] [--kernel value ] [--key value ]
[--load-balancers value[,value...]] [--vpc-zone-identifier value ] [--monitoring-enabled/monitoring-disabled ]
[--ramdisk value ]
[--placement-group value ] [--termination-policies value[,value,...]]
[--spot-price value ]
[--vpc-zone-identifier subnetId[,subnetId,..]] [--placement-tenancy value ]
[--termination-policies value[,value,... ]]
as-set-desired-capacity [--user-data value ][--user-data-file value ]
Sets the desired capacity of the specified Auto Scaling
as-delete-auto-scaling-group group (within the range of the group's minimum and as-delete-launch-config
maximum size). Deletes the specified launch configuration.
Deletes the specified Auto Scaling group if the group has
no instances and no scaling activities in progress. as-set-desired-capacity AutoScalingGroupName as-delete-launch-config
--desired-capacity value LaunchConfigurationName [--force ]
as-delete-auto-scaling-group
AutoScalingGroupName [--force-delete][--force] [--honor-cooldown/--no-honor-cooldown ]
as-describe-launch-configs
as-describe-auto-scaling-groups Describes the specified launch configurations.
Returns description of the specified Auto Scaling group(s). as-describe-launch-configs
as-describe-auto-scaling-groups [AutoScalingGroupName [AutoScalingGroupName..]] [LaunchConfigurationName
[--max-records value ] [LaunchConfigurationName] ]
[--max-records value ]

Instances
Processes

as-describe-auto-scaling-instances as-set-instance-health as-suspend-processes


Sets the health of the instance. Suspends all scaling processes for an Auto Scaling
Returns a description of the Amazon EC2 instance(s) if
the instance(s) exists in the Auto Scaling group. as-set-instance-health InstanceId group.
as-describe-auto-scaling-instances [InstanceIds --status value as-suspend-processes AutoScalingGroupName
[InstanceIds ...] ] [--max-records value ] [--respect-grace-period/no-respect-grace- [--processes value1, value2,]
period]
as-resume-processes
as-detach-instances Resumes all suspended scaling processes for a given
as-attach-instances Detaches instances from Auto Scaling group Auto Scaling group.
Attaches instances to Auto Scaling group as-detach-instances InstanceIds as-resume-processes AutoScalingGroupName
as-attach-instances InstanceIds [InstanceIds ..]--auto-scaling-group value [--processes value1, value2,]
[InstanceIds ..]--auto-scaling-group value [--decrement-desired-capacity/--no-decrement-
desired-capacity] as-describe-process-types
Returns descriptions of suspendable scaling processes.
as-enter-standby as-exit-standby If arguments are passed, returns matching process
Move instances in an Auto Scaling group into Move instances in an Auto Scaling group out of types.
a Standby mode. Standby mode. as-describe-process-types [ProcessName ...]
as-enter-standby --instances [InstanceIds ..] as-enter-standby --instances [InstanceIds ..]
--auto-scaling-group value --auto-scaling-group value
[--decrement-desired-capacity/--no-decrement- [--decrement-desired-capacity/--no-decrement-
desired-capacity] desired-capacity]

as-terminate-instance-in-auto-scaling-group
Terminates a given instance with/without reducing the group's capacity.
as-terminate-instance-in-auto-scaling-group InstanceId
--decrement-desired-capacity/no-decrement-desired-capacity [--force ]

Lifecycle Hooks

as-complete-lifecycle-action as-delete-lifecycle-hook
Completes the lifecycle action for the associated token as-describe-lifecycle-hooks
Deletes the specified lifecycle hook. If there are any
initiated under the given lifecycle hook with the specified Describes the lifecycle hooks that currently belong to
outstanding lifecycle actions, they are completed first
result. the specified Auto Scaling group.
(ABANDON for launching instances, CONTINUE for
as-complete-lifecycle-action token --auto- terminating instances). as-describe-lifecycle-hooks --auto-scaling-
scaling-group-name value --lifecycle-action- group-name value --lifecycle-hook-names
as-delete-lifecycle-hook --auto-scaling-group-
result value --lifecycle-action-token value [LifecycleHookNames]
name value --lifecycle-hook-name value
--lifecycle-hook-name value

as-put-lifecycle-hook
Creates or updates a lifecycle hook for an Auto Scaling as-record-lifecycle-action-heartbeat
Group.
Records a heartbeat for the lifecycle action associated as-describe-lifecycle-hook-types
as-put-lifecycle-hook --auto-scaling-group-name with a specific token.
value --default-result value --heartbeat- Describes the available types of lifecycle hooks.
as-record-lifecycle-action-heartbeat
timeout value --lifecycle-hook-name value as-describe-lifecycle-hooks
--auto-scaling-group-name value --lifecycle-
--lifecycle-transition value --notification-
action-token value --lifecycle-hook-name value
metadata value --notification-target-arn value
--role-arn value

Revised: 7/30/2014
Auto Scaling (Version 2011-01-01)
Quick Reference Card, Page 2

Policies Scheduled Actions Notification Configuration


as-put-scaling-policy as-describe-scheduled-actions
Creates or updates a scaling policy with specified Describes the specified scheduled action(s) if the
as-put-notification-configuration
attributes. scheduled action(s) exists. Configures an Auto Scaling group to send notifications
as-put-scaling-policy PolicyName --type value as-describe-scheduled-actions when specified events take place.
--auto-scaling-group value --adjustment [ScheduledActionNames [ScheduledActionNames as-put-notification-configuration
value [--cooldown value][--min-adjustment-step ...] ][--auto-scaling-group value ] AutoScalingGroupName --notification-types
value] [--start-time value ] [--end-time value ] value --topic-arn topic-ARN
[--max-records value ]
as-delete-policy
Deletes the specified policy. as-delete-scheduled-action as-describe-notification-configurations
as-delete-policy PolicyName Deletes the specified scheduled action. Returns a list of notification actions associated with
[--auto-scaling-group value ] [--force ] Auto Scaling groups for specified events.
as-delete-scheduled-action ScheduledActionName
as-describe-notification-configurations
--auto-scaling-group value [--force ]
[--auto-scaling-groups value[,value...]]
as-describe-adjustment-types [--maxrecords value]
Describes valid adjustment types for calls to as-put- as-put-scheduled-update-group-action
scaling-policy. If arguments are passed, describes
Creates or updates a specified scheduled update group
only adjustment types with names that match the
action with attributes.
arguments.
as-put-scheduled-update-group-action
as-delete-notification-configuration
as-describe-adjustment-types Deletes notifications created by as-put-notification-
ScheduledActionName --auto-scaling-group value
[AdjustmentTypes [AdjustmentTypes ...] ] configuration.
--time value [--desired-capacity value ]
[--max-size value ] [--min-size value ] as-delete-notification-configuration
as-describe-policies [--recurrence value ] AutoScalingGroupName --topic-arn topic-ARN
Describes the specified policy/policies if specified
policy/policies exist.
as-describe-policies [PolicyNames [PolicyNames Metrics Collection
...] ] [--auto-scaling-group value ] as-describe-auto-scaling-notification-
[--max-records value] types
as-enable-metrics-collection Returns a list of all notification types that are
as-execute-policy Enables collection of Auto Scaling group metrics. supported by Auto Scaling.
Executes the specified policy. as-enable-metrics-collection as-describe-auto-scaling-notification-types
as-execute-policy PolicyName AutoScalingGroupName --granularity value
[--auto-scaling-group value ] [--metrics value [,value...] ]
[--honor-cooldown/no-honor-cooldown ]
as-disable-metrics-collection Scaling Activities
as-describe-termination-policy-types Disables collection of Auto Scaling group metrics.
Describes all Auto Scaling termination policy types. as-disable-metrics-collection
as-describe-termination-policy-types AutoScalingGroupName [--metrics
value[,value...]] as-describe-scaling-activities
Describes a set of activities or all activities belonging
Account Limit to a group.
as-describe-metric-collection-types as-describe-scaling-activities
Describes all metric collection types and metric [ActivityIds [ActivityIds ...]]
as-describe-account-limits granularity types. [--auto-scaling-group value ]
Describes limits for the account. as-describe-metric-collection-types [--max-records value ]
as-describe-account-limits

Revised: 7/30/2014
Auto Scaling (Version 2011-01-01)
Quick Reference Card, Page 3

Revised: 7/29/2014

General Options

The following options can be used with all the commands in the Auto Scaling command line interface.

--region
--access-key-id
Specify the web service Region to use. This option overrides the region specified
Provide the access key ID corresponding to the AWS Secret Access Key.
in the EC2_REGION environment variable.
--access-key-id value
--region value

--aws-credential-file --secret-key
Provide the location of the file with your AWS credentials. Specify AWS Secret Access Key to use.
--aws-credential-file value --secret-key value

--connection-timeout --show-empty-fields
Specify the connection timeout value (in seconds). Default value is 30 seconds. Displays empty columns and rows as nil when displaying tabular results.
--connection-timeout value --show-empty-fields

--delimiter --show-table; --show-long; --show-xml; --quiet


Specify the delimiter to use when displaying delimited (long) results. Specifies how the results are displayed: tabular, delimited (long), xml, or no
--delimiter value output.
--show-table
--show-long
--ec2-cert-file-path --show-xml
Provide the location of the file with your EC2 X.509 certificate. --quiet
--ec2-cert-file-path value

--show-request
--ec2-private-key-file-path Displays the URL used to call a service in AWS.
Provide the location of the file with your private key. --show-request
--ec2-private-key-file-path value

--url
--headers Provide the URL to use for calling a service in AWS. This option overrides the
Includes column headers if displaying tabular results, or include HTTP headers if web service entry point URL specified in the AWS_ELB_URL environment
displaying xml results. variable.
--headers --url value

Revised: 7/30/2014

Das könnte Ihnen auch gefallen