---
type: resource-type
title: ComputeNodeGroup
description: aws resource type AWS::PCS::ComputeNodeGroup
name: ComputeNodeGroup
lexicon: aws
resource_type: AWS::PCS::ComputeNodeGroup
---
`AWS::PCS::ComputeNodeGroup`, a resource type of the aws lexicon.

## Properties

- `ClusterId` (`string`, required): The ID of the cluster of the compute node group.
- `CustomLaunchTemplate` (`Record<string, unknown>`, required): An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- `IamInstanceProfileArn` (`string`, required): The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances correctly.
- `InstanceConfigs` (`ComputeNodeGroup_InstanceConfig[]`, required): A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- `ScalingConfiguration` (`Record<string, unknown>`, required): Specifies the boundaries of the compute node group auto scaling.
- `SubnetIds` (`string[]`, required): The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
- `AmiId` (`string`, optional): The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances. If not provided, AWS PCS uses the AMI ID specified in the custom launch template.
- `Arn` (`string`, optional): The unique Amazon Resource Name (ARN) of the compute node group.
- `ErrorInfo` (`ComputeNodeGroup_ErrorInfo[]`, optional): The list of errors that occurred during compute node group provisioning.
- `Id` (`string`, optional): The generated unique ID of the compute node group.
- `Name` (`string`, optional): The name that identifies the compute node group.
- `NodeLifecycleActions` (`ComputeNodeGroup_NodeLifecycleActions`, optional)
- `PurchaseOption` (`"CAPACITY_BLOCK" | "INTERRUPTIBLE_CAPACITY_RESERVATION" | "ONDEMAND" | "SPOT"`, optional): Specifies how EC2 instances are purchased on your behalf. AWS PCS supports On-Demand, Spot, Capacity Block, and Interruptible Capacity Reservation instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
- `SlurmConfiguration` (`Record<string, unknown>`, optional): Additional options related to the Slurm scheduler.
- `SpotOptions` (`Record<string, unknown>`, optional): Additional configuration when you specify SPOT as the purchase option.
- `Status` (`"ACTIVE" | "CREATE_FAILED" | "CREATING" | "DELETE_FAILED" | "DELETING" | "UPDATE_FAILED" | "UPDATING"`, optional): The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
- `Tags` (`any`, optional): 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.

## Attributes

- `Arn`
- `ErrorInfo`
- `Id`
- `Status`
