euscale-put-scaling-policy

Creates or updates a scaling policy.

Syntax

euscale-put-scaling-policy
PolicyName
-g, --auto-scaling-group value
[--adjustment value]
[-t, --adjustment-type value]
[--cooldown value]
[-s, --min-adjustment-step value]

Options

Option Description Required
PolicyName The name of the policy. Yes
-g, --auto-scaling-group value The name of the auto scaling group associated with the policy. Yes
-a, --adjustment value The amount to scale the capacity of the group. Use a negative number to decrease capacity. Yes
-t, --type value Indicates the type of change for the --adjustment parameter. Valid values are:
ChangeInCapacity
A fixed-number increment of the old value
ExactCapacity
An absolute value
PercentChangeInCapacity
A percentage of the current capacity
Yes
--cooldown value The waiting period, in seconds, before auto scaling activities will resume. Yes
-s, --min-adjustment-step value The minimum adjustment value for PercentageChangeInCapacity-type adjustments. Yes

Common Options

Option Description
--show-empty-fields Show empty fields using (nil) as a placeholder to indicate that this data was not requested. Empty fields are not shown by default.
--region value Specify region value as the cloud region to use. You can set this by using the environment variable AWS_DEFAULT_REGION.
-U,--url value Overrides the URL for the service call with the value entered. You can set this by using the environment variable AWS_AUTOSCALING_URL.
-I, --access-key-id value User's access key ID
-S, --secret-key value User's AWS secret Key to use.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
--version Display the version of this tool.
-h,--help Display the manual page for the command.

Output

This command returns no output.

Examples

The follow example will delete a policy named MyScaleinPolicy in the auto scaling group named MyScalingGroup.

euscale-put-scaling-policy MyScaleinPolicy -g MyScalingGroup -a -1 -t ChangeInCapacity
x