Using sample Amazon Machine Images (AMIs) with AWS PCS - AWS PCS

Using sample Amazon Machine Images (AMIs) with AWS PCS

AWS provides sample AMIs that you can use as a starting point for working with AWS PCS.

Important

Sample AMIs are for demonstration purposes and are not recommended for production workloads.

Find current AWS PCS sample AMIs

AWS Management Console

AWS PCS sample AMIs have the following naming convention:

aws-pcs-sample_ami-OS-architecture-schdeulder-scheduler-major-version
Accepted values
  • OSamzn2

  • architecturex86_64 or arm64

  • schedulerslurm

  • scheduler-major-version23.11

To find AWS PCS sample AMIs
  1. Open the Amazon EC2 console.

  2. Navigate to AMIs.

  3. Choose Public images.

  4. In Find AMI by attribute or tag, search for an AMI using the templated name.

    Examples
    • Slurm 23.11 AMI supporting Graviton

      aws-pcs-sample_ami-amzn2-arm64-slurm-23.11
    • Sample AMI for x86 instances

      aws-pcs-sample_ami-amzn2-x86_64-slurm-23.11
    Note

    If there are multiple AMIs, use the AMI with the most recent time stamp.

  5. Use the AMI ID when you create or update a compute node group.

AWS CLI

You can find the latest AWS PCS sample AMI with the commands that follow. Replace region-code with the AWS Region where you use AWS PCS, such as us-east-1.

  • x86_64

    aws ec2 describe-images --region region-code --owners amazon 533267220047 654654292779 654654317195 975050324343 \ --filters 'Name=name,Values=aws-pcs-sample_ami-amzn2-x86_64-slurm-23.11*' \ 'Name=state,Values=available' \ --query 'sort_by(Images, &CreationDate)[-1].[Name,ImageId]' --output text
  • Arm64

    aws ec2 describe-images --region region-code --owners amazon 533267220047 654654292779 654654317195 975050324343 \ --filters 'Name=name,Values=aws-pcs-sample_ami-amzn2-arm64-slurm-23.11*' \ 'Name=state,Values=available' \ --query 'sort_by(Images, &CreationDate)[-1].[Name,ImageId]' --output text

Use the AMI ID when you create or update a compute node group.

Learn more about AWS PCS sample AMIs

To view the contents, configuration details for current and previous releases of the AWS PCS sample AMIs, see Release notes for AWS PCS sample AMIs.

Build your own AMIs compatible with AWS PCS

To learn how to build your own AMIs that work with AWS PCS, see Custom Amazon Machine Images (AMIs) for AWS PCS.