Skip to content

Application Auto Scaling

CloudMock emulates AWS Application Auto Scaling, supporting scalable target registration, scaling policies, and scheduled actions for various AWS services.

OperationStatusNotes
RegisterScalableTargetSupportedRegisters a scalable target
DescribeScalableTargetsSupportedLists registered scalable targets
DeregisterScalableTargetSupportedRemoves a scalable target
PutScalingPolicySupportedCreates or updates a scaling policy
DescribeScalingPoliciesSupportedLists scaling policies
DeleteScalingPolicySupportedDeletes a scaling policy
PutScheduledActionSupportedCreates or updates a scheduled action
DescribeScheduledActionsSupportedLists scheduled actions
DeleteScheduledActionSupportedDeletes a scheduled action
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { ApplicationAutoScalingClient, RegisterScalableTargetCommand } from '@aws-sdk/client-application-auto-scaling';
const client = new ApplicationAutoScalingClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new RegisterScalableTargetCommand({
ServiceNamespace: 'ecs',
ResourceId: 'service/my-cluster/my-service',
ScalableDimension: 'ecs:service:DesiredCount',
MinCapacity: 1,
MaxCapacity: 10,
}));
import boto3
client = boto3.client('application-autoscaling',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.register_scalable_target(
ServiceNamespace='ecs',
ResourceId='service/my-cluster/my-service',
ScalableDimension='ecs:service:DesiredCount',
MinCapacity=1,
MaxCapacity=10)
cloudmock.yml
services:
applicationautoscaling:
enabled: true
  • Scaling policies are stored but do not trigger actual scaling actions
  • Scheduled actions are stored but do not execute on schedule
  • No integration with target service metrics