--- page_title: "ona_environment_class Resource - ona" subcategory: "Runners" description: |- Ona runner environment class used by projects to select runner capacity. Destroying this resource disables the remote environment class and removes it from Terraform state because the Ona API does not expose an environment class delete operation. --- # ona_environment_class (Resource) Ona runner environment class used by projects to select runner capacity. Destroying this resource disables the remote environment class and removes it from Terraform state because the Ona API does not expose an environment class delete operation. For product context, see [Environment classes](https://ona.com/docs/ona/runners/aws/environment-classes). ## Example Usage ```terraform resource "ona_environment_class" "large" { runner_id = ona_runner.aws_primary.runner_id display_name = "Large (8 vCPU / 32 GB)" description = "High-memory class for monorepo builds" configuration = { machineType = "m6i.2xlarge" diskSizeGb = "100" } } ``` ## Schema ### Required - `configuration` (Map of String) Provider-specific environment class configuration as key/value strings, such as machine type and disk size. Valid keys depend on the runner provider. Changing this map replaces the environment class. - `display_name` (String) Environment class display name shown to project and environment users. - `runner_id` (String) Runner ID this environment class belongs to. Changing this value replaces the environment class. ### Optional - `description` (String) Environment class description. Defaults to `Environment class managed by Terraform.` when omitted. - `enabled` (Boolean) Whether the environment class can be selected for new environments. Defaults to the provider value `true`. ### Read-Only - `id` (String) Environment class ID. ## Import Import is supported using the following syntax: The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: ```shell #!/usr/bin/env sh terraform import ona_environment_class.large 01980ed3-a090-7b5b-a74c-9bf5d8cfe53c ```