HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/awscli/examples/autoscaling/put-scheduled-update-group-action.rst
**Example 1: To add a scheduled action to an Auto Scaling group**

This example adds the specified scheduled action to the specified Auto Scaling group. ::

    aws autoscaling put-scheduled-update-group-action \
        --auto-scaling-group-name my-asg \
        --scheduled-action-name my-scheduled-action \
        --start-time "2021-05-12T08:00:00Z" \
        --min-size 2 \
        --max-size 6 \
        --desired-capacity 4

This command produces no output. If a scheduled action with the same name already exists, it will be overwritten by the new scheduled action.

For more examples, see `Scheduled scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html>`__ in the *Amazon EC2 Auto Scaling User Guide*.

**Example 2: To specify a recurring schedule**

This example creates a scheduled action to scale on a recurring schedule that is scheduled to execute at 00:30 hours on the first of January, June, and December every year. ::

    aws autoscaling put-scheduled-update-group-action \
        --auto-scaling-group-name my-asg \
        --scheduled-action-name my-recurring-action \
        --recurrence "30 0 1 1,6,12 *" \
        --min-size 2 \
        --max-size 6 \
        --desired-capacity 4

This command produces no output. If a scheduled action with the same name already exists, it will be overwritten by the new scheduled action.

For more examples, see `Scheduled scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html>`__ in the *Amazon EC2 Auto Scaling User Guide*.