--- page_title: "ona_project Data Source - ona" subcategory: "Projects" description: |- Fetches an Ona project by ID and exposes the same fields as the ona_project managed resource. --- # ona_project (Data Source) Fetches an Ona project by ID and exposes the same fields as the `ona_project` managed resource. For product context, see [Project configuration](https://ona.com/docs/ona/projects/overview) and [Create your first project](https://ona.com/docs/ona/create-first-project). ## Example Usage ```terraform data "ona_project" "example" { project_id = "" } ``` ## Schema ### Required - `project_id` (String) Ona project ID to look up. ### Read-Only - `automations_file_path` (String) Path to the tasks and services configuration, relative to the repository root. - `branch` (String) Git branch name Ona uses when creating environments and prebuilds. - `created_at` (String) Time when the project was created. - `creator` (Attributes) Identity that created the project. (see [below for nested schema](#nestedatt--creator)) - `devcontainer_file_path` (String) Path to the devcontainer file, relative to the repository root. - `environment_class` (Attributes List) Environment classes available to this project, in priority order. (see [below for nested schema](#nestedatt--environment_class)) - `id` (String) Terraform data source ID. This is the same value as `project_id`. - `insights_enabled` (Boolean) Whether Ona Insights is enabled for the project. - `name` (String) Project display name shown in Ona. - `prebuild_configuration` (Attributes List) Prebuild configuration for the project. (see [below for nested schema](#nestedatt--prebuild_configuration)) - `repository_clone_url` (String) Git repository clone URL. ### Nested Schema for `creator` Read-Only: - `id` (String) Subject ID. - `principal` (String) Subject principal type. ### Nested Schema for `environment_class` Read-Only: - `environment_class_id` (String) Runner environment class ID available to this project. Null for a local-runner entry. - `local_runner` (Boolean) Whether this entry represents the user's local runner. - `order` (Number) Priority order for this environment class entry. Lower values are preferred first. ### Nested Schema for `prebuild_configuration` Read-Only: - `daily_schedule` (Attributes List) Daily UTC prebuild schedule. (see [below for nested schema](#nestedatt--prebuild_configuration--daily_schedule)) - `enable_jetbrains_warmup` (Boolean) Whether JetBrains IDE warmup runs during prebuilds. - `enabled` (Boolean) Whether prebuilds are enabled for this project. - `environment_class_ids` (Set of String) Environment class IDs for which prebuilds are created. - `executor` (Attributes List) Subject whose SCM credentials are used to run prebuilds. (see [below for nested schema](#nestedatt--prebuild_configuration--executor)) - `timeout` (String) Maximum duration allowed for a prebuild to complete, as a Go duration string. ### Nested Schema for `prebuild_configuration.daily_schedule` Read-Only: - `hour_utc` (Number) UTC hour of day when the prebuild starts. ### Nested Schema for `prebuild_configuration.executor` Read-Only: - `id` (String) Executor subject ID. - `principal` (String) Executor principal type.