AWS Fundamentals Logo
AWS Fundamentals
AWS::PCS::ComputeNodeGroup

PCS ComputeNodeGroup

AWS::PCS::ComputeNodeGroup resource creates an AWS PCS compute node group.

Properties

12 configurable properties. 6 required. Click a row to see details.

Filter:
PropertyTypeFlags
ClusterId
string
RequiredCreate-only
CustomLaunchTemplate
object
Required
IamInstanceProfileArn
string
Required
InstanceConfigs
Array<InstanceConfig>
RequiredCreate-only
ScalingConfiguration
object
Required
SubnetIds
Array<string>
Required
AmiId
string
Name
string
Create-only
PurchaseOption
string
SlurmConfiguration
object
SpotOptions
object
Tags
Any

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe unique Amazon Resource Name (ARN) of the compute node group.
ErrorInfoArray<ErrorInfo>The list of errors that occurred during compute node group provisioning.
IdstringThe generated unique ID of the compute node group.
StatusstringThe provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::PCS::ComputeNodeGroup

Resources:
  MyResource:
    Type: AWS::PCS::ComputeNodeGroup
    Properties:
      ClusterId: "my-clusterid"
      CustomLaunchTemplate: {}
      IamInstanceProfileArn: "arn:aws:service:region:account:resource"
      InstanceConfigs: []
      ScalingConfiguration: {}
      SubnetIds: "my-subnetids"
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

pcs:GetComputeNodeGrouppcs:ListTagsForResource

create

ec2:DescribeImagesec2:DescribeVpcsec2:DescribeSubnetsec2:DescribeSecurityGroupsec2:DescribeLaunchTemplatesec2:DescribeLaunchTemplateVersionsec2:DescribeInstanceTypesec2:DescribeInstanceTypeOfferings

update

ec2:DescribeImagesec2:DescribeVpcsec2:DescribeSubnetsec2:DescribeSecurityGroupsec2:DescribeLaunchTemplatesec2:DescribeLaunchTemplateVersionsec2:DescribeInstanceTypesec2:DescribeInstanceTypeOfferings

list

pcs:ListClusterspcs:ListComputeNodeGroups

delete

ec2:DescribeImagesec2:DescribeVpcsec2:DescribeSubnetsec2:DescribeSecurityGroupsec2:DescribeLaunchTemplatesec2:DescribeLaunchTemplateVersionsec2:DescribeInstanceTypesec2:DescribeInstanceTypeOfferings

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServicePCS
Properties16
Required6
TaggingSupported
Primary IDArn

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NameClusterIdInstanceConfigs

Related Resources

External Links