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
| 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 | ||
| default_result | str | ABANDON | ||
| endpoint_url | str | |||
| heartbeat_timeout | int | |||
| lifecycle_hook_name | str | yes | ||
| notification_meta_data | str | |||
| notification_target_arn | str | |||
| profile | str | |||
| region | str | |||
| role_arn | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| transition | str | |||
| validate_certs | bool | true |
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