Initialize connection to AutoScaling
options parameter must include values for :aws_access_key_id and :aws_secret_access_key in order to create a connection
as = AutoScaling.new( :aws_access_key_id => your_aws_access_key_id, :aws_secret_access_key => your_aws_secret_access_key )
Creates a new Auto Scaling group with the specified name. Once the creation request is completed, the AutoScalingGroup is ready to be used in other calls.
placement group created in Amazon EC2.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_CreateAutoScalingGroup.html
Creates a new launch configuration. Once created, the new launch configuration is available for immediate use.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_CreateLaunchConfiguration.html
Deletes the specified auto scaling group if the group has no instances and no scaling activities in progress.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeleteAutoScalingGroup.html
Deletes the specified launch configuration.
The specified launch configuration must not be attached to an Auto Scaling group. Once this call completes, the launch configuration is no longer available for use.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeleteLaunchConfiguration.html
Deletes a policy created by put_scaling_policy
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeletePolicy.html
Deletes a scheduled action previously created using the put_scheduled_update_group_action.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeleteScheduledAction.html
Returns policy adjustment types for use in the put_scaling_policy action.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeAdjustmentTypes.html
Returns a full description of each Auto Scaling group in the given list. This includes all Amazon EC2 instances that are members of the group. If a list of names is not provided, the service returns the full details of all Auto Scaling groups.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
(ARN) of the Auto Scaling group.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeAutoScalingGroups.html
Returns a description of each Auto Scaling instance in the instance_ids list. If a list is not provided, the service returns the full details of all instances.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
configuration associated with this instance.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeAutoScalingInstances.html
Returns a full description of the launch configurations given the specified names.
If no names are specified, then the full details of all launch configurations are returned.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeLaunchConfigurations.html
Returns a list of metrics and a corresponding list of granularities for each metric.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeAutoScalingInstances.html
Returns descriptions of what each policy does. This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribePolicies.html
Returns the scaling activities for the specified Auto Scaling group.
If the specified activity_ids list is empty, all the activities from the past six weeks are returned. Activities are sorted by completion time. Activities still in progress appear first on the list.
This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeScalingActivities.html
Returns scaling process types for use in the resume_processes and suspend_processes actions.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeScalingProcessTypes.html
List all the actions scheduled for your Auto Scaling group that haven‘t been executed. To see a list of action already executed, see the activity record returned in describe_scaling_activities.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeScheduledActions.html
Disables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of affected metrics with the Metrics parameter.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DisableMetricsCollection.html
Enables monitoring of group metrics for the Auto Scaling group specified in auto_scaling_group_name. You can specify the list of enabled metrics with the metrics parameter.
Auto scaling metrics collection can be turned on only if the instance_monitoring.enabled flag, in the Auto Scaling group‘s launch configuration, is set to true.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_EnableMetricsCollection.html
Runs the policy you create for your Auto Scaling group in put_scaling_policy.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_ExecutePolicy.html
Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameter(s) you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_PutScalingPolicy.html
Creates a scheduled scaling action for a Auto Scaling group. If you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_PutScheduledUpdateGroupAction.html
Resumes Auto Scaling processes for an Auto Scaling group.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_ResumeProcesses.html
Adjusts the desired size of the AutoScalingGroup by initiating scaling activities. When reducing the size of the group, it is not possible to define which EC2 instances will be terminated. This applies to any auto-scaling decisions that might result in terminating instances.
There are two common use cases for set_desired_capacity: one for users of the Auto Scaling triggering system, and another for developers who write their own triggering systems. Both use cases relate to the concept of cooldown.
In the first case, if you use the Auto Scaling triggering system, set_desired_capacity changes the size of your Auto Scaling group without regard to the cooldown period. This could be useful, for example, if Auto Scaling did something unexpected for some reason. If your cooldown period is 10 minutes, Auto Scaling would normally reject requests to change the size of the group for that entire 10 minute period. The set_desired_capacity command allows you to circumvent this restriction and change the size of the group before the end of the cooldown period.
In the second case, if you write your own triggering system, you can use set_desired_capacity to control the size of your Auto Scaling group. If you want the same cooldown functionality that Auto Scaling offers, you can configure set_desired_capacity to honor cooldown by setting the HonorCooldown parameter to true.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_SetDesiredCapacity.html
Sets the health status of an instance.
respect the grace period associated with the group.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_SetInstanceHealth.html
Suspends Auto Scaling processes for an Auto Scaling group. To suspend specific process types, specify them by name with the ScalingProcesses parameter. To suspend all process types, omit the ScalingProcesses.member.N parameter.
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_SuspendProcesses.html
Terminates the specified instance. Optionally, the desired group size can be adjusted.
Updates the configuration for the specified AutoScalingGroup.
The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Triggers that are currently in progress aren‘t affected.
Scaling waits before checking an instance's health status
docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_UpdateAutoScalingGroup.html