Creating a Job with Compute Instances
In this section, you create your first compute instance job.
Be aware of the following points before you create your job:
-
Make sure that the vCPU, memory, and storage values associated with your AMI match the type of instance that you want to create.
-
If you're going to use SSH to connect to the instance after you launch the instance on your Snowcone, you must first perform the following procedure. You can't update the AMIs on your Snowcone after the fact. You must do this step before creating the job.
Using encrypted AMIs or encrypted Amazon EBS volumes on Amazon Snowcone devices is not supported.
Configure an AMI to Use SSH to Connect to Compute Instances Launched on the Device
To use Secure Shell (SSH) to connect to your compute instances on Snowcone devices, you must perform the following procedure. This procedure adds the SSH key to the AMI before creating your job. We also recommend that you use this procedure to set up your applications on the instance that you plan to use as the AMI for your job.
If you don't follow this procedure, you can't connect to your instances with SSH when you receive your Snowcone device.
To put an SSH key into an AMI
-
When you launch your instance, make sure that the storage size that you assign to the instance is appropriate for your later use on the Snowcone. In the Amazon EC2 console, you do this in Step 4: Add Storage. For a list of the supported sizes for compute instance storage volumes on a Snowcone, see Amazon Snowcone Quotas .
-
Install and configure the applications that you want to run on the Snowcone, and test that they work as expected.
-
Make a copy of the PEM/PPK file that you used for the SSH key pair to create this instance. Save this file to the server that you plan to use to communicate with the Snowcone. This file is required for using SSH to connect to the launched instance on your device, so make a note of the path to this file.
-
Save the instance as an AMI. For more information, see Creating an Amazon EBS-Backed Linux AMI in the Amazon EC2 User Guide for Linux Instances.
-
Repeat this procedure for each of the instances that you want to connect to using SSH. Make sure that you make copies of your different SSH key pairs and take note of the AMIs they're associated with.
Creating Your Job in the Console
Your next step is to create a job. Your job can be of any job type, including a
cluster. To use the Amazon Snow Family Management Console
Creating Your Job in the Amazon CLI
You can also create your job using the Amazon CLI. To do this, open a terminal and run the following command, replacing the red text with your actual values.
aws snowballEdge create-job --job-type
IMPORT
--resources '{"S3Resources":[{"BucketArn":"arn:aws:s3:::bucket-name
"}],"Ec2AmiResources":[{"AmiId":"ami-12345678
"}]}' --description Example --address-idADIEXAMPLE60-1234-1234-5678-41fEXAMPLE57
--kms-key-arnarn:aws:kms:us-west-2:012345678901:key/eEXAMPLE-1234-1234-5678-5b4EXAMPLE8e
--role-arnarn:aws:iam::012345678901:role/snowball-local-s3-lambda-us-west-2-role
--snowball-capacity-preference T100 --shipping-optionSECOND_DAY
--snowball-type SNOWCONE
After your device arrives and you unlock it, use the Snowball Edge client to get your local credentials. For more information, see Getting Credentials.