capabilities.work

Configure and Execute Scaling Policy

A 3-step recipe with Amazon EC2 Auto Scaling. We can help you get access.

Recipe · 3 steps

Configure and Execute Scaling Policy

with Amazon EC2 Auto Scaling · Capacity & Performance Management

Create a scaling policy, verify it, and execute it for an Auto Scaling group.

  1. Create or update a simple scaling policy on the Auto Scaling group and capture the returned policy ARN.
  2. Describe the policies on the group to confirm the new policy is registered.
  3. Execute the scaling policy by name to trigger a scaling activity on the group.
What you'll need to have ready
  • autoScalingGroupName: The name of the Auto Scaling group to attach the policy to.
  • policyName: The name of the scaling policy.
  • adjustmentType: How the adjustment is interpreted (ChangeInCapacity, ExactCapacity, or PercentChangeInCapacity).
  • scalingAdjustment: The amount to scale by for a SimpleScaling policy (positive adds, negative removes).
  • honorCooldown: Whether to wait for the cooldown period before executing the policy.
For your developer

Arazzo workflow amazon-ec2-auto-scaling:configure-and-execute-scaling-policy, 3 operations: PutScalingPolicy → DescribePolicies → ExecutePolicy. Specs on APIs.io.