Skip to content
Proud to collaborate with Microsoft for Startups

aws.autoscaling.put_lifecycle_hook ​

Create or update an Auto Scaling lifecycle hook using a CloudConnection UUID.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-aws
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—CloudConnection UUID for the target AWS account.
workflow_run_idstringNo—Engine DAG run ID stamped onto child steps.
regionstringNo—AWS region override.
lifecycle_hook_namestringYes—Name of the lifecycle hook.
auto_scaling_group_namestringYes—Name of the Auto Scaling group.
lifecycle_transitionstringNo—Instance state to which the hook applies.
role_arnstringNo—IAM role ARN that the group uses to publish to the target.
notification_target_arnstringNo—Notification target ARN for the hook.
heartbeat_timeoutintegerNo—Heartbeat timeout in seconds.
default_resultstringNo—Default action when the hook times out (CONTINUE or ABANDON).

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—CloudConnection UUID echoed from input.
regionstringNo—AWS region used.
lifecycle_hook_namestringNo—Name of the lifecycle hook.
auto_scaling_group_namestringNo—Name of the Auto Scaling group.
createdbooleanNo—Whether the lifecycle hook was created or updated.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Failed DAG layer if engine supplies one.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—ISO failure timestamp.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "aws.autoscaling.put_lifecycle_hook",
  "initial_data": {
    "connection_uuid": "value",
    "lifecycle_hook_name": "value",
    "auto_scaling_group_name": "value"
  }
}