AWS::PCS::Cluster resource creates an AWS PCS cluster.
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
networking: Optional[NetworkingPropertiesArgs] = None,
scheduler: Optional[SchedulerPropertiesArgs] = None,
size: Optional[ClusterSize] = None,
name: Optional[str] = None,
slurm_configuration: Optional[SlurmConfigurationPropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = None)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: aws-native:pcs:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_pcs_cluster" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
ClusterArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
ClusterArgs
- 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
ClusterArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
ClusterArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
ClusterArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Cluster 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 Cluster resource accepts the following input properties:
- networking
object
- The networking configuration for the cluster's control plane.
- scheduler
object
- The cluster management and job scheduling software associated with the cluster.
- size
"SMALL" | "MEDIUM" | "LARGE"
- The size of the cluster.
- name
string
- The name that identifies the cluster.
- slurm_configuration
object
- Additional options related to the Slurm scheduler.
- 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 Cluster resource produces the following output properties:
- Arn
string
- The unique Amazon Resource Name (ARN) of the cluster.
- AwsId
string
- The generated unique ID of the cluster.
- Endpoints
[]ClusterEndpoint
- The list of endpoints available for interaction with the scheduler.
- ErrorInfo
[]ClusterErrorInfo
- The list of errors that occurred during cluster provisioning.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Status
ClusterStatus
- The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
- arn
String
- The unique Amazon Resource Name (ARN) of the cluster.
- awsId
String
- The generated unique ID of the cluster.
- endpoints
List<ClusterEndpoint>
- The list of endpoints available for interaction with the scheduler.
- errorInfo
List<ClusterErrorInfo>
- The list of errors that occurred during cluster provisioning.
- id
String
- The provider-assigned unique ID for this managed resource.
- status
ClusterStatus
- The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
- arn
string
- The unique Amazon Resource Name (ARN) of the cluster.
- awsId
string
- The generated unique ID of the cluster.
- endpoints
ClusterEndpoint[]
- The list of endpoints available for interaction with the scheduler.
- errorInfo
ClusterErrorInfo[]
- The list of errors that occurred during cluster provisioning.
- id
string
- The provider-assigned unique ID for this managed resource.
- status
ClusterStatus
- The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
- arn
str
- The unique Amazon Resource Name (ARN) of the cluster.
- aws_id
str
- The generated unique ID of the cluster.
- endpoints
Sequence[ClusterEndpoint]
- The list of endpoints available for interaction with the scheduler.
- error_info
Sequence[ClusterErrorInfo]
- The list of errors that occurred during cluster provisioning.
- id
str
- The provider-assigned unique ID for this managed resource.
- status
ClusterStatus
- The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
Look up Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Cluster get(String name, Output<String> id, CustomResourceOptions options)
resources: existingCluster: type: aws-native:pcs:Cluster get: id: ${id}
import {
to = aws-native_pcs_cluster.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
ClusterState
- 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
ClusterEndpoint
An endpoint available for interaction with the scheduler.
ClusterEndpointType
Indicates the type of endpoint running at the specific IP address.
| Name | Value |
|---|
| Slurmctld | SLURMCTLD |
| Slurmdbd | SLURMDBD |
| Slurmrestd | SLURMRESTD |
| Name | Value |
|---|
| ClusterEndpointTypeSlurmctld | SLURMCTLD |
| ClusterEndpointTypeSlurmdbd | SLURMDBD |
| ClusterEndpointTypeSlurmrestd | SLURMRESTD |
| Value |
|---|
SLURMCTLD |
SLURMDBD |
SLURMRESTD |
| Name | Value |
|---|
| Slurmctld | SLURMCTLD |
| Slurmdbd | SLURMDBD |
| Slurmrestd | SLURMRESTD |
| Name | Value |
|---|
| Slurmctld | SLURMCTLD |
| Slurmdbd | SLURMDBD |
| Slurmrestd | SLURMRESTD |
| Name | Value |
|---|
| SLURMCTLD | SLURMCTLD |
| SLURMDBD | SLURMDBD |
| SLURMRESTD | SLURMRESTD |
| Value |
|---|
SLURMCTLD |
SLURMDBD |
SLURMRESTD |
ClusterErrorInfo
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.
ClusterNetworkingPropertiesNetworkType
The IP of the cluster (IPV4 or IPV6)
| Name | Value |
|---|
| Ipv4 | IPV4 |
| Ipv6 | IPV6 |
| Name | Value |
|---|
| ClusterNetworkingPropertiesNetworkTypeIpv4 | IPV4 |
| ClusterNetworkingPropertiesNetworkTypeIpv6 | IPV6 |
| Name | Value |
|---|
| Ipv4 | IPV4 |
| Ipv6 | IPV6 |
| Name | Value |
|---|
| Ipv4 | IPV4 |
| Ipv6 | IPV6 |
| Name | Value |
|---|
| IPV4 | IPV4 |
| IPV6 | IPV6 |
ClusterSchedulerPropertiesType
The software AWS PCS uses to manage cluster scaling and job scheduling.
| Name | Value |
|---|
| ClusterSchedulerPropertiesTypeSlurm | SLURM |
ClusterSize
The size of the cluster.
| Name | Value |
|---|
| Small | SMALL |
| Medium | MEDIUM |
| Large | LARGE |
| Name | Value |
|---|
| ClusterSizeSmall | SMALL |
| ClusterSizeMedium | MEDIUM |
| ClusterSizeLarge | LARGE |
| Name | Value |
|---|
| Small | SMALL |
| Medium | MEDIUM |
| Large | LARGE |
| Name | Value |
|---|
| Small | SMALL |
| Medium | MEDIUM |
| Large | LARGE |
| Name | Value |
|---|
| SMALL | SMALL |
| MEDIUM | MEDIUM |
| LARGE | LARGE |
ClusterStatus
The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
| Name | Value |
|---|
| Creating | CREATING |
| Active | ACTIVE |
| Updating | UPDATING |
| Deleting | DELETING |
| CreateFailed | CREATE_FAILED |
| DeleteFailed | DELETE_FAILED |
| UpdateFailed | UPDATE_FAILED |
| Name | Value |
|---|
| ClusterStatusCreating | CREATING |
| ClusterStatusActive | ACTIVE |
| ClusterStatusUpdating | UPDATING |
| ClusterStatusDeleting | DELETING |
| ClusterStatusCreateFailed | CREATE_FAILED |
| ClusterStatusDeleteFailed | DELETE_FAILED |
| ClusterStatusUpdateFailed | 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 |
NetworkingProperties, NetworkingPropertiesArgs
The networking configuration for the cluster's control plane.
- NetworkType
Pulumi.AwsNative.Pcs.ClusterNetworkingPropertiesNetworkType
- The IP of the cluster (IPV4 or IPV6)
- SecurityGroupIds
List<string>
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- SubnetIds
List<string>
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
- NetworkType
ClusterNetworkingPropertiesNetworkType
- The IP of the cluster (IPV4 or IPV6)
- SecurityGroupIds
[]string
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- SubnetIds
[]string
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
- network_type
"IPV4" | "IPV6"
- The IP of the cluster (IPV4 or IPV6)
- security_group_ids
list(string)
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- subnet_ids
list(string)
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
- networkType
ClusterNetworkingPropertiesNetworkType
- The IP of the cluster (IPV4 or IPV6)
- securityGroupIds
List<String>
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- subnetIds
List<String>
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
- networkType
ClusterNetworkingPropertiesNetworkType
- The IP of the cluster (IPV4 or IPV6)
- securityGroupIds
string[]
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- subnetIds
string[]
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
- network_type
ClusterNetworkingPropertiesNetworkType
- The IP of the cluster (IPV4 or IPV6)
- security_group_ids
Sequence[str]
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- subnet_ids
Sequence[str]
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
- networkType
"IPV4" | "IPV6"
- The IP of the cluster (IPV4 or IPV6)
- securityGroupIds
List<String>
- The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
- subnetIds
List<String>
- The list of subnet IDs where AWS PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and AWS PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. AWS PCS currently supports only 1 subnet in this list.
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.
SchedulerProperties, SchedulerPropertiesArgs
The cluster management and job scheduling software associated with the cluster.
- Type
ClusterSchedulerPropertiesType
- The software AWS PCS uses to manage cluster scaling and job scheduling.
- Version
string
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling.
- type
"SLURM"
- The software AWS PCS uses to manage cluster scaling and job scheduling.
- version
string
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling.
- type
ClusterSchedulerPropertiesType
- The software AWS PCS uses to manage cluster scaling and job scheduling.
- version
String
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling.
- type
ClusterSchedulerPropertiesType
- The software AWS PCS uses to manage cluster scaling and job scheduling.
- version
string
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling.
- type
ClusterSchedulerPropertiesType
- The software AWS PCS uses to manage cluster scaling and job scheduling.
- version
str
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling.
- type
"SLURM"
- The software AWS PCS uses to manage cluster scaling and job scheduling.
- version
String
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling.
SlurmConfigurationProperties, SlurmConfigurationPropertiesArgs
The Slurm configuration for the queue.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0