Step 1: Launch a DLAMI
Note
For this walkthrough, we might make references specific to the Deep Learning AMI (Ubuntu 18.04). Even if you select a different DLAMI, you should be able to follow this guide.
-
Launch an Amazon EC2 instance from your DLAMI
You will use the Amazon EC2 Console. Follow the instructions detailed in Launch from Amazon EC2 Console
Tip
CLI Option: If you choose to spin up a DLAMI using the Amazon CLI, you will need the AMI's ID, the region and instance type, and your security token information. Be sure you have your AMI and instance IDs ready. If you haven't set up the Amazon CLI yet, do that first using the guide for Installing the Amazon Command Line Interface.
-
After you have completed the steps of one of those options, wait for the instance to be ready. This usually takes only a few minutes. You can verify the status of the instance in the EC2 Console
.
Retrieve the DLAMI ID
Each AMI possesses a unique identifier (ID). You can query the ID for the DLAMI of your choice with the Amazon Command Line Interface (Amazon CLI). If you do not already have the Amazon CLI installed, see Getting started with the Amazon CLI.
Note
Reminder: You can find all DLAMIs and their related
processor/accelorator, operating system, compute architecture, recommended Amazon EC2 instance families, support status, and ID retrieval queries, in the
Amazon Deep Learning AMI Catalog
-
Make sure that your Amazon credentials are configured.
aws configure
-
Use the following command to retrieve the ID of your DLAMI or find the query provided in the Amazon Deep Learning AMI Catalog.
aws ec2 describe-images --region
us-east-1
--owners amazon \ --filters 'Name=name,Values=Deep Learning AMI (Ubuntu 18.04) Version ??.?
' 'Name=state,Values=available' \ --query 'reverse(sort_by(Images, &CreationDate))[:1].ImageId' --output textNote
You can specify a release version for a given framework or get the latest release by replacing the version number with a question mark.
-
The output should look similar to the following:
ami-094c089c38ed069f2
Copy this DLAMI ID and press
q
to exit the prompt.
Next Step
Launch from Amazon EC2 Console
Launch from Amazon EC2 Console
Note
To launch an instance with Elastic Fabric Adapter (EFA), refer to these steps.
-
Open the EC2 Console
. -
Note your current region in the top-most navigation. If this isn't your desired Amazon Web Services Region, change this option before proceeding. For more information, see EC2 Regions.
-
Choose Launch Instance.
-
Enter a name for your instance and select the DLAMI that is right for you.
-
Find an existing DLAMI in My AMIs or choose Quick Start.
-
Search by DLAMI ID. Browse the options then select your choice.
-
-
Choose an instance type. You can find the recommended instance families for your DLAMI in the Amazon Deep Learning AMI Catalog. For general recommendations on DLAMI instance types, see Instance Selection.
-
Choose Launch Instance.