interface CfnComputeNodeGroupProps
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_pcs.CfnComputeNodeGroupProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awspcs#CfnComputeNodeGroupProps |
![]() | software.amazon.awscdk.services.pcs.CfnComputeNodeGroupProps |
![]() | aws_cdk.aws_pcs.CfnComputeNodeGroupProps |
![]() | aws-cdk-lib » aws_pcs » CfnComputeNodeGroupProps |
Properties for defining a CfnComputeNodeGroup
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-computenodegroup.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const cfnComputeNodeGroupProps: pcs.CfnComputeNodeGroupProps = {
clusterId: 'clusterId',
customLaunchTemplate: {
version: 'version',
// the properties below are optional
templateId: 'templateId',
},
iamInstanceProfileArn: 'iamInstanceProfileArn',
instanceConfigs: [{
instanceType: 'instanceType',
}],
scalingConfiguration: {
maxInstanceCount: 123,
minInstanceCount: 123,
},
subnetIds: ['subnetIds'],
// the properties below are optional
amiId: 'amiId',
name: 'name',
purchaseOption: 'purchaseOption',
slurmConfiguration: {
slurmCustomSettings: [{
parameterName: 'parameterName',
parameterValue: 'parameterValue',
}],
},
spotOptions: {
allocationStrategy: 'allocationStrategy',
},
tags: {
tagsKey: 'tags',
},
};
Properties
Name | Type | Description |
---|---|---|
cluster | string | The ID of the cluster of the compute node group. |
custom | IResolvable | Custom | An Amazon EC2 launch template AWS PCS uses to launch compute nodes. |
iam | string | The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. |
instance | IResolvable | IResolvable | Instance [] | A list of EC2 instance configurations that AWS PCS can provision in the compute node group. |
scaling | IResolvable | Scaling | Specifies the boundaries of the compute node group auto scaling. |
subnet | string[] | The list of subnet IDs where instances are provisioned by the compute node group. |
ami | string | The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances. |
name? | string | The name that identifies the compute node group. |
purchase | string | Specifies how EC2 instances are purchased on your behalf. |
slurm | IResolvable | Slurm | Additional options related to the Slurm scheduler. |
spot | IResolvable | Spot | Additional configuration when you specify SPOT as the purchaseOption . |
tags? | { [string]: string } | 1 or more tags added to the resource. |
clusterId
Type:
string
The ID of the cluster of the compute node group.
customLaunchTemplate
Type:
IResolvable
|
Custom
An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
iamInstanceProfileArn
Type:
string
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
Type:
IResolvable
|
IResolvable
|
Instance
[]
A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
scalingConfiguration
Type:
IResolvable
|
Scaling
Specifies the boundaries of the compute node group auto scaling.
subnetIds
Type:
string[]
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?
Type:
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.
name?
Type:
string
(optional)
The name that identifies the compute node group.
purchaseOption?
Type:
string
(optional)
Specifies how EC2 instances are purchased on your behalf.
AWS PCS supports On-Demand and Spot 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?
Type:
IResolvable
|
Slurm
(optional)
Additional options related to the Slurm scheduler.
spotOptions?
Type:
IResolvable
|
Spot
(optional)
Additional configuration when you specify SPOT
as the purchaseOption
.
tags?
Type:
{ [string]: string }
(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.