PARALLAX

autoscaling_lifecycle_hook

Create, delete or update AWS ASG Lifecycle Hooks

Collection: community.aws

Full Name: community.aws.autoscaling_lifecycle_hook

Synopsis

Create, delete or update AWS ASG Lifecycle Hooks

Parameters

NameTypeRequiredDefaultDescription
access_keystr
autoscaling_group_namestryes
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
default_resultstrABANDON
endpoint_urlstr
heartbeat_timeoutint
lifecycle_hook_namestryes
notification_meta_datastr
notification_target_arnstr
profilestr
regionstr
role_arnstr
secret_keystr
session_tokenstr
statestrpresent
transitionstr
validate_certsbooltrue

Example

yaml
- name: Create / Update lifecycle hook
  community.aws.autoscaling_lifecycle_hook:
    region: eu-central-1
    state: present
    autoscaling_group_name: example
    lifecycle_hook_name: example
    transition: autoscaling:EC2_INSTANCE_LAUNCHING
    heartbeat_timeout: 7000
    default_result: ABANDON

- name: Delete lifecycle hook
  community.aws.autoscaling_lifecycle_hook:
    region: eu-central-1
    state: absent
    autoscaling_group_name: example
    lifecycle_hook_name: example
Search
    ↑ ↓ move↵ openesc close