Step 2 – Launch an EC2 instance
To launch an EC2 instance
-
Open the Amazon EC2 console
. -
In the navigation pane, choose Instances, and then choose Launch Instances to open the new launch instance wizard.
-
(Optional) In the Name and tags section, provide a name for the instance, such as
PCS-LoginNode
. The name is assigned to the instance as a resource tag (Name=PCS-LoginNode
). -
In the Application and OS Images section, select an AMI for one of the operating systems supported by AWS PCS. For more information, see Supported operating systems.
-
In the Instance type section, select a supported instance type. For more information, see Supported instance types.
-
In the Key pair section, select the SSH key pair to use for the instance.
-
In the Network settings section:
-
Choose Edit.
-
Select the VPC of your AWS PCS cluster.
-
For Firewall (security groups), choose Select existing security group.
-
Select a security group that permits traffic between the instance and the target AWS PCS cluster’s Slurm controller. For more information, see Security group requirements and considerations.
-
(Optional) Select a security group that allows inbound SSH access to your instance.
-
-
-
-
In the Storage section, configure storage volumes as needed. Make sure to configure sufficient space to install applications and libraries to enable your use case.
-
Under Advanced, choose an IAM role that allows access to the cluster secret. For more information, see Get the Slurm cluster secret.
-
In the Summary pane, choose Launch instance.