# modules/runners

**Spinbox is experimental: APIs change and data may be lost.** What is built and what proves it is on [Status](https://docs.spinbox.dev/reference/status.md); what Spinbox does not do is on [Limitations](https://docs.spinbox.dev/overview/limitations.md).

> spin-terraform-aws, the runners' autoscaling group, used on its own: every variable it takes and every output it gives.

<!-- Generated by tools/refgen from spin-terraform-aws:modules/runners/variables.tf. Edit the source, not this file. -->

Source: `github.com/spin-stack/spin-terraform-aws//modules/runners?ref=v20261123.01`. Generated from its variables and outputs.

## Variables

| Variable | Type | Default |
|---|---|---|
| [`controlplane`](#controlplane) | `object({ name = string iam_name = string vpc_id = string subnet_ids = list(string) security_group_id = string runner_document_arn = string runner_user_data = string images = map(object({ id = string, root_device = string })) boot_log_policy_arn = string standard_vcpus = number boundary_arn = string disk_key_arn = string })` | **required** |
| [`runners`](#runners) | `object({ launch_template = string controlplane_role = string vcpus_max = number max_hosts = number spot = bool data_volume_gb = number })` | **required** |
| [`request_quota`](#request_quota) | `bool` | `true` |
| [`root_volume_gb`](#root_volume_gb) | `number` | `30` |
| [`tags`](#tags) | `map(string)` | `{}` |

### controlplane

What this module needs of the control plane module's outputs, named one by one: its name, where the runners go, their document, what a runner's machine runs at its first boot, and the key its disks are encrypted under.

- Type: `object({ name = string iam_name = string vpc_id = string subnet_ids = list(string) security_group_id = string runner_document_arn = string runner_user_data = string images = map(object({ id = string, root_device = string })) boot_log_policy_arn = string standard_vcpus = number boundary_arn = string disk_key_arn = string })`
- **Required**

### runners

The control plane module's runners output: what it decides of the runners - the launch template's name, which it makes each host class's group from, its role, what the template's machines need of an instance type, and what the quota is sized by.

- Type: `object({ launch_template = string controlplane_role = string vcpus_max = number max_hosts = number spot = bool data_volume_gb = number })`
- **Required**

### request_quota

Ask AWS for the vCPU quota max_hosts runners need, when the account's is lower (quota.tf). A request costs nothing and lowers nothing when it is removed.

- Type: `bool`
- Default: `true`

### root_volume_gb

The runner's root disk: the OS and the machine's files; its data is on the instance store or data_volume_gb.

- Type: `number`
- Default: `30`

### tags

Tags on everything this module creates.

- Type: `map(string)`
- Default: `{}`

## Outputs

| Output | What it is |
|---|---|
| `launch_template` | The runners' launch template, which every host class's group the control plane makes starts its machines from; its default version is the release's. |
| `security_group_id` | The runners' security group: nothing in, everything out - a workspace's egress is filtered on the host by spin. |
| `runner_groups` | What takes the runners' groups away on a destroy (groups.tf): for the control plane's group to depend on, which has to go first or it makes them again. |
