AWS::PCS::ComputeNodeGroup resource creates an AWS PCS compute node group.
Create ComputeNodeGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def ComputeNodeGroup(resource_name: str,
args: ComputeNodeGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeNodeGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
scaling_configuration: Optional[ScalingConfigurationPropertiesArgs] = None,
cluster_id: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
iam_instance_profile_arn: Optional[str] = None,
instance_configs: Optional[Sequence[ComputeNodeGroupInstanceConfigArgs]] = None,
purchase_option: Optional[ComputeNodeGroupPurchaseOption] = None,
name: Optional[str] = None,
node_lifecycle_actions: Optional[ComputeNodeGroupNodeLifecycleActionsArgs] = None,
ami_id: Optional[str] = None,
launch_template_mode: Optional[ComputeNodeGroupLaunchTemplateMode] = None,
security_group_ids: Optional[Sequence[str]] = None,
slurm_configuration: Optional[SlurmConfigurationPropertiesArgs] = None,
spot_options: Optional[SpotOptionsPropertiesArgs] = None,
ssh_key_name: Optional[str] = None,
custom_launch_template: Optional[CustomLaunchTemplatePropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = None)
type: aws-native:pcs:ComputeNodeGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_pcs_compute_node_group" "name" {
# resource properties
}
Parameters
- resource_name
str
- The unique name of the resource.
- args
ComputeNodeGroupArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
ComputeNodeGroupArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
ComputeNodeGroupArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
ComputeNodeGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComputeNodeGroup resource accepts the following input properties:
- ClusterId
string
- The ID of the cluster of the compute node group.
- IamInstanceProfileArn
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
[]ComputeNodeGroupInstanceConfigArgs
- A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- ScalingConfiguration
ScalingConfigurationPropertiesArgs
- Specifies the boundaries of the compute node group auto scaling.
- SubnetIds
[]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
string
- 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.
- CustomLaunchTemplate
CustomLaunchTemplatePropertiesArgs
- An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- LaunchTemplateMode
ComputeNodeGroupLaunchTemplateMode
- How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
- Name
string
- The name that identifies the compute node group.
- NodeLifecycleActions
ComputeNodeGroupNodeLifecycleActionsArgs
- PurchaseOption
ComputeNodeGroupPurchaseOption
- 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.
- SecurityGroupIds
[]string
- The IDs of the EC2 security groups configured directly on the compute node group. These replace the security groups from the custom launch template. A request cannot specify this property with a launch template that defines NetworkInterfaces. When not provided and a custom launch template is present, AWS PCS uses the security groups from the launch template.
- SlurmConfiguration
SlurmConfigurationPropertiesArgs
- Additional options related to the Slurm scheduler.
- SpotOptions
SpotOptionsPropertiesArgs
- Additional configuration when you specify SPOT as the purchase option.
- SshKeyName
string
- The name of the EC2 key pair configured directly on the compute node group. The key pair must exist in the caller's account and Region and overrides the key pair from the custom launch template. When not provided and a custom launch template is present, AWS PCS uses the key pair from the launch template.
- Tags
map[string]string
- 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.
- cluster_id
string
- The ID of the cluster of the compute node group.
- iam_instance_profile_arn
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.
- instance_configs
list(object)
- A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- scaling_configuration
object
- Specifies the boundaries of the compute node group auto scaling.
- subnet_ids
list(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.
- ami_id
string
- 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.
- custom_launch_template
object
- An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- launch_template_mode
"CUSTOM" | "MANAGED"
- How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
- name
string
- The name that identifies the compute node group.
- node_lifecycle_actions
object
- purchase_option
"ONDEMAND" | "SPOT" | "CAPACITY_BLOCK" | "INTERRUPTIBLE_CAPACITY_RESERVATION"
- 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.
- security_group_ids
list(string)
- The IDs of the EC2 security groups configured directly on the compute node group. These replace the security groups from the custom launch template. A request cannot specify this property with a launch template that defines NetworkInterfaces. When not provided and a custom launch template is present, AWS PCS uses the security groups from the launch template.
- slurm_configuration
object
- Additional options related to the Slurm scheduler.
- spot_options
object
- Additional configuration when you specify SPOT as the purchase option.
- ssh_key_name
string
- The name of the EC2 key pair configured directly on the compute node group. The key pair must exist in the caller's account and Region and overrides the key pair from the custom launch template. When not provided and a custom launch template is present, AWS PCS uses the key pair from the launch template.
- tags
map(string)
- 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.
- clusterId
String
- The ID of the cluster of the compute node group.
- iamInstanceProfileArn
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
List<ComputeNodeGroupInstanceConfig>
- A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- scalingConfiguration
ScalingConfigurationProperties
- Specifies the boundaries of the compute node group auto scaling.
- subnetIds
List<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
String
- 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.
- customLaunchTemplate
CustomLaunchTemplateProperties
- An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- launchTemplateMode
ComputeNodeGroupLaunchTemplateMode
- How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
- name
String
- The name that identifies the compute node group.
- nodeLifecycleActions
ComputeNodeGroupNodeLifecycleActions
- purchaseOption
ComputeNodeGroupPurchaseOption
- 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.
- securityGroupIds
List<String>
- The IDs of the EC2 security groups configured directly on the compute node group. These replace the security groups from the custom launch template. A request cannot specify this property with a launch template that defines NetworkInterfaces. When not provided and a custom launch template is present, AWS PCS uses the security groups from the launch template.
- slurmConfiguration
SlurmConfigurationProperties
- Additional options related to the Slurm scheduler.
- spotOptions
SpotOptionsProperties
- Additional configuration when you specify SPOT as the purchase option.
- sshKeyName
String
- The name of the EC2 key pair configured directly on the compute node group. The key pair must exist in the caller's account and Region and overrides the key pair from the custom launch template. When not provided and a custom launch template is present, AWS PCS uses the key pair from the launch template.
- tags
Map<String,String>
- 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.
- clusterId
string
- The ID of the cluster of the compute node group.
- iamInstanceProfileArn
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
ComputeNodeGroupInstanceConfig[]
- A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- scalingConfiguration
ScalingConfigurationProperties
- Specifies the boundaries of the compute node group auto scaling.
- subnetIds
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
string
- 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.
- customLaunchTemplate
CustomLaunchTemplateProperties
- An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- launchTemplateMode
ComputeNodeGroupLaunchTemplateMode
- How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
- name
string
- The name that identifies the compute node group.
- nodeLifecycleActions
ComputeNodeGroupNodeLifecycleActions
- purchaseOption
ComputeNodeGroupPurchaseOption
- 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.
- securityGroupIds
string[]
- The IDs of the EC2 security groups configured directly on the compute node group. These replace the security groups from the custom launch template. A request cannot specify this property with a launch template that defines NetworkInterfaces. When not provided and a custom launch template is present, AWS PCS uses the security groups from the launch template.
- slurmConfiguration
SlurmConfigurationProperties
- Additional options related to the Slurm scheduler.
- spotOptions
SpotOptionsProperties
- Additional configuration when you specify SPOT as the purchase option.
- sshKeyName
string
- The name of the EC2 key pair configured directly on the compute node group. The key pair must exist in the caller's account and Region and overrides the key pair from the custom launch template. When not provided and a custom launch template is present, AWS PCS uses the key pair from the launch template.
- tags
{[key: string]: string}
- 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.
- cluster_id
str
- The ID of the cluster of the compute node group.
- iam_instance_profile_arn
str
- 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.
- instance_configs
Sequence[ComputeNodeGroupInstanceConfigArgs]
- A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- scaling_configuration
ScalingConfigurationPropertiesArgs
- Specifies the boundaries of the compute node group auto scaling.
- subnet_ids
Sequence[str]
- 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.
- ami_id
str
- 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.
- custom_launch_template
CustomLaunchTemplatePropertiesArgs
- An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- launch_template_mode
ComputeNodeGroupLaunchTemplateMode
- How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
- name
str
- The name that identifies the compute node group.
- node_lifecycle_actions
ComputeNodeGroupNodeLifecycleActionsArgs
- purchase_option
ComputeNodeGroupPurchaseOption
- 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.
- security_group_ids
Sequence[str]
- The IDs of the EC2 security groups configured directly on the compute node group. These replace the security groups from the custom launch template. A request cannot specify this property with a launch template that defines NetworkInterfaces. When not provided and a custom launch template is present, AWS PCS uses the security groups from the launch template.
- slurm_configuration
SlurmConfigurationPropertiesArgs
- Additional options related to the Slurm scheduler.
- spot_options
SpotOptionsPropertiesArgs
- Additional configuration when you specify SPOT as the purchase option.
- ssh_key_name
str
- The name of the EC2 key pair configured directly on the compute node group. The key pair must exist in the caller's account and Region and overrides the key pair from the custom launch template. When not provided and a custom launch template is present, AWS PCS uses the key pair from the launch template.
- tags
Mapping[str, str]
- 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.
- clusterId
String
- The ID of the cluster of the compute node group.
- iamInstanceProfileArn
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
List<Property Map>
- A list of EC2 instance configurations that AWS PCS can provision in the compute node group.
- scalingConfiguration
Property Map
- Specifies the boundaries of the compute node group auto scaling.
- subnetIds
List<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
String
- 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.
- customLaunchTemplate
Property Map
- An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- launchTemplateMode
"CUSTOM" | "MANAGED"
- How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
- name
String
- The name that identifies the compute node group.
- nodeLifecycleActions
Property Map
- purchaseOption
"ONDEMAND" | "SPOT" | "CAPACITY_BLOCK" | "INTERRUPTIBLE_CAPACITY_RESERVATION"
- 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.
- securityGroupIds
List<String>
- The IDs of the EC2 security groups configured directly on the compute node group. These replace the security groups from the custom launch template. A request cannot specify this property with a launch template that defines NetworkInterfaces. When not provided and a custom launch template is present, AWS PCS uses the security groups from the launch template.
- slurmConfiguration
Property Map
- Additional options related to the Slurm scheduler.
- spotOptions
Property Map
- Additional configuration when you specify SPOT as the purchase option.
- sshKeyName
String
- The name of the EC2 key pair configured directly on the compute node group. The key pair must exist in the caller's account and Region and overrides the key pair from the custom launch template. When not provided and a custom launch template is present, AWS PCS uses the key pair from the launch template.
- tags
Map<String>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeNodeGroup resource produces the following output properties:
- Arn
string
- The unique Amazon Resource Name (ARN) of the compute node group.
- AwsId
string
- The generated unique ID of the compute node group.
- ErrorInfo
[]ComputeNodeGroupErrorInfo
- The list of errors that occurred during compute node group provisioning.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Status
ComputeNodeGroupStatus
- The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
- arn
String
- The unique Amazon Resource Name (ARN) of the compute node group.
- awsId
String
- The generated unique ID of the compute node group.
- errorInfo
List<ComputeNodeGroupErrorInfo>
- The list of errors that occurred during compute node group provisioning.
- id
String
- The provider-assigned unique ID for this managed resource.
- status
ComputeNodeGroupStatus
- The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
- arn
string
- The unique Amazon Resource Name (ARN) of the compute node group.
- awsId
string
- The generated unique ID of the compute node group.
- errorInfo
ComputeNodeGroupErrorInfo[]
- The list of errors that occurred during compute node group provisioning.
- id
string
- The provider-assigned unique ID for this managed resource.
- status
ComputeNodeGroupStatus
- The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
- arn
str
- The unique Amazon Resource Name (ARN) of the compute node group.
- aws_id
str
- The generated unique ID of the compute node group.
- error_info
Sequence[ComputeNodeGroupErrorInfo]
- The list of errors that occurred during compute node group provisioning.
- id
str
- The provider-assigned unique ID for this managed resource.
- status
ComputeNodeGroupStatus
- The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
Look up Existing ComputeNodeGroup Resource
Get an existing ComputeNodeGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
func GetComputeNodeGroup(ctx *Context, name string, id IDInput, state *ComputeNodeGroupState, opts ...ResourceOption) (*ComputeNodeGroup, error)
public static ComputeNodeGroup get(String name, Output<String> id, CustomResourceOptions options)
resources: existingComputeNodeGroup: type: aws-native:pcs:ComputeNodeGroup get: id: ${id}
import {
to = aws-native_pcs_compute_node_group.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
ComputeNodeGroupState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
ComputeNodeGroupErrorInfo
An error that occurred during resource provisioning.
- Code
string
- The short-form error code.
- Message
string
- The detailed error information.
- Code
string
- The short-form error code.
- Message
string
- The detailed error information.
- code
string
- The short-form error code.
- message
string
- The detailed error information.
- code
String
- The short-form error code.
- message
String
- The detailed error information.
- code
string
- The short-form error code.
- message
string
- The detailed error information.
- code
str
- The short-form error code.
- message
str
- The detailed error information.
- code
String
- The short-form error code.
- message
String
- The detailed error information.
ComputeNodeGroupInstanceConfig, ComputeNodeGroupInstanceConfigArgs
An EC2 instance configuration AWS PCS uses to launch compute nodes.
- InstanceType
string
- The EC2 instance type that AWS PCS can provision in the compute node group.
- InstanceType
string
- The EC2 instance type that AWS PCS can provision in the compute node group.
- instance_type
string
- The EC2 instance type that AWS PCS can provision in the compute node group.
- instanceType
String
- The EC2 instance type that AWS PCS can provision in the compute node group.
- instanceType
string
- The EC2 instance type that AWS PCS can provision in the compute node group.
- instance_type
str
- The EC2 instance type that AWS PCS can provision in the compute node group.
- instanceType
String
- The EC2 instance type that AWS PCS can provision in the compute node group.
ComputeNodeGroupLaunchTemplateMode
How AWS PCS gets the launch template for the compute node group. CUSTOM uses CustomLaunchTemplate. MANAGED has AWS PCS generate and manage the launch template from the instance settings; omit CustomLaunchTemplate. Defaults to CUSTOM on create.
| Name | Value |
|---|
| Custom | CUSTOM |
| Managed | MANAGED |
| Name | Value |
|---|
| ComputeNodeGroupLaunchTemplateModeCustom | CUSTOM |
| ComputeNodeGroupLaunchTemplateModeManaged | MANAGED |
| Name | Value |
|---|
| Custom | CUSTOM |
| Managed | MANAGED |
| Name | Value |
|---|
| Custom | CUSTOM |
| Managed | MANAGED |
| Name | Value |
|---|
| CUSTOM | CUSTOM |
| MANAGED | MANAGED |
ComputeNodeGroupNodeLifecycleActions, ComputeNodeGroupNodeLifecycleActionsArgs
Custom scripts that run at defined points in a compute node's lifecycle.
ComputeNodeGroupNodeLifecycleActionsScriptCachingPolicy
Controls whether lifecycle scripts are downloaded once at first boot (CACHE_ONCE) or re-downloaded on every reboot (REFRESH_ON_REBOOT). Defaults to CACHE_ONCE.
| Name | Value |
|---|
| CacheOnce | CACHE_ONCE |
| RefreshOnReboot | REFRESH_ON_REBOOT |
| Name | Value |
|---|
| ComputeNodeGroupNodeLifecycleActionsScriptCachingPolicyCacheOnce | CACHE_ONCE |
| ComputeNodeGroupNodeLifecycleActionsScriptCachingPolicyRefreshOnReboot | REFRESH_ON_REBOOT |
| Value |
|---|
CACHE_ONCE |
REFRESH_ON_REBOOT |
| Name | Value |
|---|
| CacheOnce | CACHE_ONCE |
| RefreshOnReboot | REFRESH_ON_REBOOT |
| Name | Value |
|---|
| CacheOnce | CACHE_ONCE |
| RefreshOnReboot | REFRESH_ON_REBOOT |
| Name | Value |
|---|
| CACHE_ONCE | CACHE_ONCE |
| REFRESH_ON_REBOOT | REFRESH_ON_REBOOT |
| Value |
|---|
CACHE_ONCE |
REFRESH_ON_REBOOT |
ComputeNodeGroupNodeLifecycleScript, ComputeNodeGroupNodeLifecycleScriptArgs
A single lifecycle script with its source, arguments, and error behavior.
ComputeNodeGroupNodeLifecycleScriptExecutionPolicy
Whether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT). Defaults to FIRST_BOOT_ONLY.
| Name | Value |
|---|
| FirstBootOnly | FIRST_BOOT_ONLY |
| EveryBoot | EVERY_BOOT |
| Name | Value |
|---|
| ComputeNodeGroupNodeLifecycleScriptExecutionPolicyFirstBootOnly | FIRST_BOOT_ONLY |
| ComputeNodeGroupNodeLifecycleScriptExecutionPolicyEveryBoot | EVERY_BOOT |
| Value |
|---|
FIRST_BOOT_ONLY |
EVERY_BOOT |
| Name | Value |
|---|
| FirstBootOnly | FIRST_BOOT_ONLY |
| EveryBoot | EVERY_BOOT |
| Name | Value |
|---|
| FirstBootOnly | FIRST_BOOT_ONLY |
| EveryBoot | EVERY_BOOT |
| Name | Value |
|---|
| FIRST_BOOT_ONLY | FIRST_BOOT_ONLY |
| EVERY_BOOT | EVERY_BOOT |
| Value |
|---|
FIRST_BOOT_ONLY |
EVERY_BOOT |
ComputeNodeGroupNodeLifecycleScriptOnError
The behavior when the script exits with an error. Defaults to TERMINATE.
| Name | Value |
|---|
| Terminate | TERMINATE |
| StopSequence | STOP_SEQUENCE |
| Continue | CONTINUE |
| Name | Value |
|---|
| ComputeNodeGroupNodeLifecycleScriptOnErrorTerminate | TERMINATE |
| ComputeNodeGroupNodeLifecycleScriptOnErrorStopSequence | STOP_SEQUENCE |
| ComputeNodeGroupNodeLifecycleScriptOnErrorContinue | CONTINUE |
| Value |
|---|
TERMINATE |
STOP_SEQUENCE |
CONTINUE |
| Name | Value |
|---|
| Terminate | TERMINATE |
| StopSequence | STOP_SEQUENCE |
| Continue | CONTINUE |
| Name | Value |
|---|
| Terminate | TERMINATE |
| StopSequence | STOP_SEQUENCE |
| Continue | CONTINUE |
| Name | Value |
|---|
| TERMINATE | TERMINATE |
| STOP_SEQUENCE | STOP_SEQUENCE |
| CONTINUE_ | CONTINUE |
| Value |
|---|
TERMINATE |
STOP_SEQUENCE |
CONTINUE |
ComputeNodeGroupNodeLifecycleStages, ComputeNodeGroupNodeLifecycleStagesArgs
The ordered scripts to run at each compute node lifecycle stage.
ComputeNodeGroupPurchaseOption
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.
| Name | Value |
|---|
| Ondemand | ONDEMAND |
| Spot | SPOT |
| CapacityBlock | CAPACITY_BLOCK |
| InterruptibleCapacityReservation | INTERRUPTIBLE_CAPACITY_RESERVATION |
| Name | Value |
|---|
| ComputeNodeGroupPurchaseOptionOndemand | ONDEMAND |
| ComputeNodeGroupPurchaseOptionSpot | SPOT |
| ComputeNodeGroupPurchaseOptionCapacityBlock | CAPACITY_BLOCK |
| ComputeNodeGroupPurchaseOptionInterruptibleCapacityReservation | INTERRUPTIBLE_CAPACITY_RESERVATION |
| Value |
|---|
ONDEMAND |
SPOT |
CAPACITY_BLOCK |
INTERRUPTIBLE_CAPACITY_RESERVATION |
| Name | Value |
|---|
| Ondemand | ONDEMAND |
| Spot | SPOT |
| CapacityBlock | CAPACITY_BLOCK |
| InterruptibleCapacityReservation | INTERRUPTIBLE_CAPACITY_RESERVATION |
| Name | Value |
|---|
| Ondemand | ONDEMAND |
| Spot | SPOT |
| CapacityBlock | CAPACITY_BLOCK |
| InterruptibleCapacityReservation | INTERRUPTIBLE_CAPACITY_RESERVATION |
| Name | Value |
|---|
| ONDEMAND | ONDEMAND |
| SPOT | SPOT |
| CAPACITY_BLOCK | CAPACITY_BLOCK |
| INTERRUPTIBLE_CAPACITY_RESERVATION | INTERRUPTIBLE_CAPACITY_RESERVATION |
| Value |
|---|
ONDEMAND |
SPOT |
CAPACITY_BLOCK |
INTERRUPTIBLE_CAPACITY_RESERVATION |
ComputeNodeGroupScriptSource, ComputeNodeGroupScriptSourceArgs
The external location of a lifecycle script.
- ScriptLocation
string
- The S3 URI or HTTPS URL where the script is stored.
- Checksum
string
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- S3VersionId
string
- The S3 object version ID of the script, when stored in a versioned bucket.
- ScriptLocation
string
- The S3 URI or HTTPS URL where the script is stored.
- Checksum
string
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- S3VersionId
string
- The S3 object version ID of the script, when stored in a versioned bucket.
- script_location
string
- The S3 URI or HTTPS URL where the script is stored.
- checksum
string
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- s3_version_id
string
- The S3 object version ID of the script, when stored in a versioned bucket.
- scriptLocation
String
- The S3 URI or HTTPS URL where the script is stored.
- checksum
String
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- s3VersionId
String
- The S3 object version ID of the script, when stored in a versioned bucket.
- scriptLocation
string
- The S3 URI or HTTPS URL where the script is stored.
- checksum
string
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- s3VersionId
string
- The S3 object version ID of the script, when stored in a versioned bucket.
- script_location
str
- The S3 URI or HTTPS URL where the script is stored.
- checksum
str
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- s3_version_id
str
- The S3 object version ID of the script, when stored in a versioned bucket.
- scriptLocation
String
- The S3 URI or HTTPS URL where the script is stored.
- checksum
String
- A 64-character hexadecimal SHA-256 digest used to verify script integrity.
- s3VersionId
String
- The S3 object version ID of the script, when stored in a versioned bucket.
ComputeNodeGroupSpotOptionsPropertiesAllocationStrategy
The Amazon EC2 allocation strategy AWS PCS uses to provision EC2 instances. AWS PCS supports lowest price, capacity optimized, and price capacity optimized. If you don't provide this option, it defaults to price capacity optimized.
| Name | Value |
|---|
| LowestPrice | lowest-price |
| CapacityOptimized | capacity-optimized |
| PriceCapacityOptimized | price-capacity-optimized |
| Name | Value |
|---|
| ComputeNodeGroupSpotOptionsPropertiesAllocationStrategyLowestPrice | lowest-price |
| ComputeNodeGroupSpotOptionsPropertiesAllocationStrategyCapacityOptimized | capacity-optimized |
| ComputeNodeGroupSpotOptionsPropertiesAllocationStrategyPriceCapacityOptimized | price-capacity-optimized |
| Value |
|---|
lowest-price |
capacity-optimized |
price-capacity-optimized |
| Name | Value |
|---|
| LowestPrice | lowest-price |
| CapacityOptimized | capacity-optimized |
| PriceCapacityOptimized | price-capacity-optimized |
| Name | Value |
|---|
| LowestPrice | lowest-price |
| CapacityOptimized | capacity-optimized |
| PriceCapacityOptimized | price-capacity-optimized |
| Name | Value |
|---|
| LOWEST_PRICE | lowest-price |
| CAPACITY_OPTIMIZED | capacity-optimized |
| PRICE_CAPACITY_OPTIMIZED | price-capacity-optimized |
| Value |
|---|
lowest-price |
capacity-optimized |
price-capacity-optimized |
ComputeNodeGroupStatus
The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
| Name | Value |
|---|
| Creating | CREATING |
| Active | ACTIVE |
| Updating | UPDATING |
| Deleting | DELETING |
| CreateFailed | CREATE_FAILED |
| DeleteFailed | DELETE_FAILED |
| UpdateFailed | UPDATE_FAILED |
| Name | Value |
|---|
| ComputeNodeGroupStatusCreating | CREATING |
| ComputeNodeGroupStatusActive | ACTIVE |
| ComputeNodeGroupStatusUpdating | UPDATING |
| ComputeNodeGroupStatusDeleting | DELETING |
| ComputeNodeGroupStatusCreateFailed | CREATE_FAILED |
| ComputeNodeGroupStatusDeleteFailed | DELETE_FAILED |
| ComputeNodeGroupStatusUpdateFailed | UPDATE_FAILED |
| Value |
|---|
CREATING |
ACTIVE |
UPDATING |
DELETING |
CREATE_FAILED |
DELETE_FAILED |
UPDATE_FAILED |
| Name | Value |
|---|
| Creating | CREATING |
| Active | ACTIVE |
| Updating | UPDATING |
| Deleting | DELETING |
| CreateFailed | CREATE_FAILED |
| DeleteFailed | DELETE_FAILED |
| UpdateFailed | UPDATE_FAILED |
| Name | Value |
|---|
| Creating | CREATING |
| Active | ACTIVE |
| Updating | UPDATING |
| Deleting | DELETING |
| CreateFailed | CREATE_FAILED |
| DeleteFailed | DELETE_FAILED |
| UpdateFailed | UPDATE_FAILED |
| Name | Value |
|---|
| CREATING | CREATING |
| ACTIVE | ACTIVE |
| UPDATING | UPDATING |
| DELETING | DELETING |
| CREATE_FAILED | CREATE_FAILED |
| DELETE_FAILED | DELETE_FAILED |
| UPDATE_FAILED | UPDATE_FAILED |
| Value |
|---|
CREATING |
ACTIVE |
UPDATING |
DELETING |
CREATE_FAILED |
DELETE_FAILED |
UPDATE_FAILED |
CustomLaunchTemplateProperties, CustomLaunchTemplatePropertiesArgs
An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
- TemplateId
string
- The ID of the EC2 launch template to use to provision instances.
- Version
string
- The version of the EC2 launch template to use to provision instances.
- TemplateId
string
- The ID of the EC2 launch template to use to provision instances.
- Version
string
- The version of the EC2 launch template to use to provision instances.
- template_id
string
- The ID of the EC2 launch template to use to provision instances.
- version
string
- The version of the EC2 launch template to use to provision instances.
- templateId
String
- The ID of the EC2 launch template to use to provision instances.
- version
String
- The version of the EC2 launch template to use to provision instances.
- templateId
string
- The ID of the EC2 launch template to use to provision instances.
- version
string
- The version of the EC2 launch template to use to provision instances.
- template_id
str
- The ID of the EC2 launch template to use to provision instances.
- version
str
- The version of the EC2 launch template to use to provision instances.
- templateId
String
- The ID of the EC2 launch template to use to provision instances.
- version
String
- The version of the EC2 launch template to use to provision instances.
QueueSlurmCustomSetting, QueueSlurmCustomSettingArgs
Additional settings that directly map to Slurm settings.
- ParameterName
string
- AWS PCS supports configuration of the Slurm parameters for queues:.
- ParameterValue
string
- The value for the configured Slurm setting.
- ParameterName
string
- AWS PCS supports configuration of the Slurm parameters for queues:.
- ParameterValue
string
- The value for the configured Slurm setting.
- parameter_name
string
- AWS PCS supports configuration of the Slurm parameters for queues:.
- parameter_value
string
- The value for the configured Slurm setting.
- parameterName
String
- AWS PCS supports configuration of the Slurm parameters for queues:.
- parameterValue
String
- The value for the configured Slurm setting.
- parameterName
string
- AWS PCS supports configuration of the Slurm parameters for queues:.
- parameterValue
string
- The value for the configured Slurm setting.
- parameter_name
str
- AWS PCS supports configuration of the Slurm parameters for queues:.
- parameter_value
str
- The value for the configured Slurm setting.
- parameterName
String
- AWS PCS supports configuration of the Slurm parameters for queues:.
- parameterValue
String
- The value for the configured Slurm setting.
ScalingConfigurationProperties, ScalingConfigurationPropertiesArgs
Specifies the boundaries of the compute node group auto scaling.
- MaxInstanceCount
int
- The upper bound of the number of instances allowed in the compute fleet.
- MinInstanceCount
int
- The lower bound of the number of instances allowed in the compute fleet.
- MaxInstanceCount
int
- The upper bound of the number of instances allowed in the compute fleet.
- MinInstanceCount
int
- The lower bound of the number of instances allowed in the compute fleet.
- max_instance_count
number
- The upper bound of the number of instances allowed in the compute fleet.
- min_instance_count
number
- The lower bound of the number of instances allowed in the compute fleet.
- maxInstanceCount
Integer
- The upper bound of the number of instances allowed in the compute fleet.
- minInstanceCount
Integer
- The lower bound of the number of instances allowed in the compute fleet.
- maxInstanceCount
number
- The upper bound of the number of instances allowed in the compute fleet.
- minInstanceCount
number
- The lower bound of the number of instances allowed in the compute fleet.
- max_instance_count
int
- The upper bound of the number of instances allowed in the compute fleet.
- min_instance_count
int
- The lower bound of the number of instances allowed in the compute fleet.
- maxInstanceCount
Number
- The upper bound of the number of instances allowed in the compute fleet.
- minInstanceCount
Number
- The lower bound of the number of instances allowed in the compute fleet.
SlurmConfigurationProperties, SlurmConfigurationPropertiesArgs
The Slurm configuration for the queue.
SpotOptionsProperties, SpotOptionsPropertiesArgs
Additional configuration when you specify SPOT as the purchase option.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0