Each DLAMI has a unique identifier (ID). When you launch a DLAMI instance using the Amazon EC2 console, you can optionally use the DLAMI ID to search for the DLAMI that you want to use. When you launch a DLAMI instance using the AWS Command Line Interface (AWS CLI), this ID is required.
You can find the ID for the DLAMI of your choice by using an AWS CLI command for either Amazon EC2 or Parameter Store, a capability of AWS Systems Manager. For instructions on installing and configuring the AWS CLI, see Get started with the AWS CLI in the AWS Command Line Interface User Guide.
To find a DLAMI ID using ssm get-parameter
In the following ssm get-parameter--name
option, the parameter name format is /aws/service/deeplearning/ami/$architecture/$ami_type/latest/ami-id
. In this name format, architecture
can be either x86_64
or arm64
. Specify the ami_type
by taking the DLAMI name and removing the keywords "deep", "learning", and "ami". AMI Name can be found in Release notes for DLAMIs.
Important
To use this command, the AWS Identity and Access Management (IAM) principal that you use must have the ssm:GetParameter
permission. For more information about IAM principals, see the Additional resources section of IAM roles in the IAM User Guide.
-
aws ssm get-parameter --name
/aws/service/deeplearning/ami/x86_64/base-oss-nvidia-driver-ubuntu-22.04/latest/ami-id
\ --regionus-east-1
--query "Parameter.Value" --output textThe output should look similar to the following:
ami-09ee1a996ac214ce7
Tip
For some currently supported DLAMI frameworks, you can find more specific example ssm get-parameter commands in Release notes for DLAMIs. Choose the link to the release notes of your chosen DLAMI, and then find its ID query in the release notes.