create_vng
Create a new AWS VNG (launch spec) under an Ocean cluster by providing a JSON string of launch spec fields. Requires confirmation to execute.
Instructions
DESTRUCTIVE: Create a new AWS VNG (launch spec) under an Ocean cluster. Requires confirm=true. Pass the launch spec fields as a JSON string.
oceanId is injected from the ocean_id argument; don't include it in spec_json.
Like update_vng, plaintext userData is auto-encoded to base64 by default.
Args:
ocean_id: The parent Ocean cluster ID (e.g. o-abcd1234). Required.
spec_json: JSON string of launch spec fields (name, instanceTypes, labels, taints,
resourceLimits, userData, etc.). Do not include oceanId.
confirm: Must be true to execute. Safety guard.
account_id: Optional account ID. Defaults to SPOTINST_ACCOUNT_ID env var.
initial_nodes: If >0, Spot launches that many nodes immediately on create.
encode_user_data: If true (default) and userData is plaintext, base64-encode
it before sending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocean_id | Yes | ||
| spec_json | Yes | ||
| confirm | No | ||
| account_id | No | ||
| initial_nodes | No | ||
| encode_user_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |