--- page_title: "ona_runner Data Source - ona" subcategory: "Runners" description: |- Fetches an Ona runner by ID and exposes the same computed fields as the ona_runner resource. --- # ona_runner (Data Source) Fetches an Ona runner by ID and exposes the same computed fields as the `ona_runner` resource. For product context, see [Runner infrastructure](https://ona.com/docs/ona/runners/overview). ## Example Usage ```terraform data "ona_runner" "example" { runner_id = "01980ed3-a090-7b5b-a74c-9bf5d8cfe53c" } ``` ## Schema ### Required - `runner_id` (String) Ona runner ID to look up. ### Read-Only - `cloudformation_template_url` (String) CloudFormation template URL for AWS EC2 runner setup. This is populated only for `aws_ec2` runners and is null for GCP runners. - `configuration` (Attributes) Runner configuration. (see [below for nested schema](#nestedatt--configuration)) - `created_at` (String) Time when the runner was created. - `creator` (Attributes) Identity that created the runner. (see [below for nested schema](#nestedatt--creator)) - `id` (String) Terraform data source ID. This is the same value as `runner_id`. - `kind` (String) Runner kind deduced by the API from the provider. - `name` (String) Runner display name. - `runner_provider` (String) Runner cloud provider, such as `aws_ec2` or `gcp`. - `terraform_module_url` (String) Terraform module URL for deploying runner infrastructure with native cloud-provider resources. AWS EC2 runners link to the unversioned public AWS module repository because it has no official release; GCP runners link to the latest published module in the Terraform Registry. ### Nested Schema for `configuration` Read-Only: - `auto_update` (Boolean) Whether the runner automatically updates itself. - `devcontainer_image_cache_enabled` (Boolean) Whether the shared devcontainer build cache is enabled for this runner. - `log_level` (String) Runner log level, such as `debug`, `info`, `warn`, or `error`. - `metrics` (Attributes) Metrics delivery configuration. Custom pipeline passwords are never exposed by this data source. (see [below for nested schema](#nestedatt--configuration--metrics)) - `region` (String) Cloud region configured for the runner, when the runner provider uses a region. - `release_channel` (String) Runner release channel, such as `stable` or `latest`. - `update_window` (Attributes) Daily UTC window during which auto-updates may run. (see [below for nested schema](#nestedatt--configuration--update_window)) ### Nested Schema for `configuration.metrics` Read-Only: - `custom` (Attributes) Custom remote-write metrics pipeline configuration. Passwords are never exposed by this data source. (see [below for nested schema](#nestedatt--configuration--metrics--custom)) - `managed` (Attributes) Ona-managed metrics pipeline configuration. (see [below for nested schema](#nestedatt--configuration--metrics--managed)) ### Nested Schema for `configuration.metrics.custom` Read-Only: - `enabled` (Boolean) Whether the runner sends metrics to the custom pipeline. - `url` (String) Remote-write URL for the custom metrics pipeline. - `username` (String) Username for authenticating to the custom metrics pipeline. ### Nested Schema for `configuration.metrics.managed` Read-Only: - `enabled` (Boolean) Whether the runner sends metrics through Ona's managed metrics pipeline. ### Nested Schema for `configuration.update_window` Read-Only: - `end` (String) End time in `HH:00` UTC format. - `start` (String) Start time in `HH:00` UTC format. ### Nested Schema for `creator` Read-Only: - `id` (String) Creator subject ID. - `principal` (String) Creator principal type.