

# Prerequisites for the AWS PCS multi-cluster login node configuration script
<a name="multi-cluster-login-script-prerequisites"></a>

## System requirements
<a name="system-requirements"></a>
+ Linux OS with `systemd` support
+ Root privileges for system configuration

## Required commands and packages
<a name="required-commands"></a>
+ `bash` – Shell interpreter (version 4.0\$1)
+ `curl` – For AWS IMDS v2 metadata retrieval
+ `jq` – JSON processor for parsing AWS API responses
+ `aws` – AWS CLI v2 to run AWS PCS API actions and for Secrets Manager access
+ `systemctl` – `systemd` service management
+ `find` – File system search utility
+ `grep` – Text pattern matching
+ `sed` – Stream editor for text manipulation
+ `sort` – Text sorting utility
+ `tail` – Displays the last lines of a file
+ `mkdir` – Directory creation
+ `chmod` – Changes file permissions
+ `chown` – Changes file ownership
+ `ldconfig` – Dynamic linker configuration

## AWS requirements
<a name="aws-requirements"></a>
+ An AWS PCS cluster that runs Slurm version 25.05 or later
+ AWS credentials configured (through an IAM role, credentials file, or environment variables)
+ Permissions for:
  + `pcs:GetCluster`
  + `secretsmanager:GetSecretValue` (if you use an alternate secret)

## System users and groups
<a name="system-users-groups"></a>
+ The `slurm` user and group must exist on the system

## Slurm installation
<a name="slurm-installation"></a>
+ Slurm must be installed in the same location as AWS PCS Slurm installer packages:

  ```
  /opt/aws/pcs/scheduler/slurm-version
  ```