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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| autoscaling_group_name | str | yes | ||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| desired_capacity | int | |||
| end_time | str | |||
| endpoint_url | str | |||
| max_size | int | |||
| min_size | int | |||
| profile | str | |||
| recurrence | str | |||
| region | str | |||
| scheduled_action_name | str | yes | ||
| secret_key | str | |||
| session_token | str | |||
| start_time | str | |||
| state | str | present | ||
| time_zone | str | |||
| validate_certs | bool | true |
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