PARALLAX

autoscaling_scheduled_action

Create, modify and delete ASG scheduled scaling actions

Collection: community.aws

Full Name: community.aws.autoscaling_scheduled_action

Synopsis

Create, modify and delete ASG scheduled scaling actions

Parameters

NameTypeRequiredDefaultDescription
access_keystr
autoscaling_group_namestryes
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
desired_capacityint
end_timestr
endpoint_urlstr
max_sizeint
min_sizeint
profilestr
recurrencestr
regionstr
scheduled_action_namestryes
secret_keystr
session_tokenstr
start_timestr
statestrpresent
time_zonestr
validate_certsbooltrue

Example

yaml
# Create a scheduled action for a autoscaling group.
- name: Create a minimal scheduled action for autoscaling group
  community.aws.autoscaling_scheduled_action:
    region: eu-west-1
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    start_time: 2021 October 25 08:00 UTC
    recurrence: 40 22 * * 1-5
    desired_capacity: 10
    state: present
  register: scheduled_action

- name: Create a scheduled action for autoscaling group
  community.aws.autoscaling_scheduled_action:
    region: eu-west-1
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    start_time: 2021 October 25 08:00 UTC
    end_time: 2021 October 25 08:00 UTC
    time_zone: Europe/London
    recurrence: 40 22 * * 1-5
    min_size: 10
    max_size: 15
    desired_capacity: 10
    state: present
  register: scheduled_action

- name: Delete scheduled action
  community.aws.autoscaling_scheduled_action:
    region: eu-west-1
    autoscaling_group_name: test_asg
    scheduled_action_name: test_scheduled_action
    state: absent
Search
    ↑ ↓ move↵ openesc close