---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_batch_compute_environment Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Resource Type definition for AWS::Batch::ComputeEnvironment
---
# awscc_batch_compute_environment (Resource)
Resource Type definition for AWS::Batch::ComputeEnvironment
## Schema
### Required
- `type` (String)
### Optional
- `compute_environment_name` (String)
- `compute_resources` (Attributes) (see [below for nested schema](#nestedatt--compute_resources))
- `replace_compute_environment` (Boolean)
- `service_role` (String)
- `state` (String)
- `tags` (Map of String) A key-value pair to associate with a resource.
- `unmanagedv_cpus` (Number)
- `update_policy` (Attributes) (see [below for nested schema](#nestedatt--update_policy))
### Read-Only
- `compute_environment_arn` (String)
- `id` (String) Uniquely identifies the resource.
### Nested Schema for `compute_resources`
Optional:
- `allocation_strategy` (String)
- `bid_percentage` (Number)
- `desiredv_cpus` (Number)
- `ec_2_configuration` (Attributes List) (see [below for nested schema](#nestedatt--compute_resources--ec_2_configuration))
- `ec_2_key_pair` (String)
- `image_id` (String)
- `instance_role` (String)
- `instance_types` (List of String)
- `launch_template` (Attributes) (see [below for nested schema](#nestedatt--compute_resources--launch_template))
- `maxv_cpus` (Number)
- `minv_cpus` (Number)
- `placement_group` (String)
- `security_group_ids` (List of String)
- `spot_iam_fleet_role` (String)
- `subnets` (List of String)
- `tags` (Map of String) A key-value pair to associate with a resource.
- `type` (String)
- `update_to_latest_image_version` (Boolean)
### Nested Schema for `compute_resources.ec_2_configuration`
Optional:
- `image_id_override` (String)
- `image_type` (String)
### Nested Schema for `compute_resources.launch_template`
Optional:
- `launch_template_id` (String)
- `launch_template_name` (String)
- `version` (String)
### Nested Schema for `update_policy`
Optional:
- `job_execution_timeout_minutes` (Number)
- `terminate_jobs_on_update` (Boolean)
## Import
Import is supported using the following syntax:
```shell
$ terraform import awscc_batch_compute_environment.example
```