detach_instances
Detach instances from an AWS Ocean cluster and optionally terminate them to manage capacity or remove problematic nodes.
Instructions
DESTRUCTIVE: Detach and optionally terminate instances from an AWS Ocean cluster. Requires confirm=true.
Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) instance_ids: Comma-separated EC2 instance IDs (e.g. i-abc123,i-def456) confirm: Must be true to execute. Safety guard. should_terminate: Terminate instances after detach (default: true) should_decrement_capacity: Reduce target capacity (default: true) account_id: Optional account ID. Defaults to SPOTINST_ACCOUNT_ID env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | ||
| instance_ids | Yes | ||
| confirm | No | ||
| should_terminate | No | ||
| should_decrement_capacity | No | ||
| account_id | No |