# ComputeConfig

Options for configuring EKS Auto Mode compute settings.

When enabled, EKS will automatically manage compute resources like node groups and Fargate profiles.

- Source: [`aws-eks-v2/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks-v2/lib/cluster.ts#L652)
- Type last changed: v2.240.0 · 23 Feb 2026

## Example

```ts
const cluster = new eks.Cluster(this, 'EksAutoCluster', {
  version: eks.KubernetesVersion.V1_36,
  defaultCapacityType: eks.DefaultCapacityType.AUTOMODE,
  compute: {
    nodePools: ['system', 'general-purpose'],
  },
});
```

## Properties

- `nodePools`: string[] — Names of nodePools to include in Auto Mode.

  **Default:** ['system', 'general-purpose']

  You cannot modify the built in system and general-purpose node pools. You can only enable or disable them.
  Node pool values are case-sensitive and must be `general-purpose` and/or `system`.

- `nodeRole`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — IAM role for the nodePools.

  **Default:** generated by the CDK
