Using Amazon EC2 Compute Instances
This section provides an overview of using Amazon EC2 compute instances on an AWS Snowball Edge device, including conceptual information, procedures, and examples.
Topics
- Overview
- Compute Instances on Clusters
- Pricing for Compute Instances on Snowball Edge
- Using an Amazon EC2 AMI on Your Device
- Importing an Image into Your Device as an Amazon EC2 AMI
- Using the AWS CLI and API Operations on Snowball Edge
- Quotas for Compute Instances on a Snowball Edge Device
- Creating a Compute Job
- Network Configuration for Compute Instances
- Using SSH to Connect to Your Compute Instance on a Snowball Edge
- Transferring Data from EC2 Compute Instances to S3 Buckets on the Same Snowball Edge
- Snowball Edge Client Commands for Compute Instances
- Using the Amazon EC2 Endpoint
- Autostarting Amazon EC2 Instances with Launch Templates
- Using Block Storage with Your Amazon EC2 Instances
- Security Groups in Snowball Edge Devices
- Supported Instance Metadata and User Data
- Stopping EC2 Instances
- Troubleshooting Compute Instances on Snowball Edge Devices
Overview
You can run Amazon EC2 compute instances hosted on a Snowball Edge with the
sbe1
, sbe-c
, and sbe-g
instance types. The
sbe1
instance type works on devices with the Snowball Edge Storage
Optimized option. The sbe-c
instance type works on devices with the
Snowball Edge Compute Optimized option. Both the sbe-c
and
sbe-g
instance types work on devices with the Snowball Edge Compute
Optimized with GPU option. For a list of supported instance types, see Quotas for Compute Instances on a Snowball Edge
Device.
All three compute instance types supported for use on Snowball Edge device options are unique to Snowball Edge devices. Like their cloud-based counterparts, these instances require Amazon Machine Images (AMIs) to launch. You choose the AMI to be that base image for an instance in the cloud, before you create your Snowball Edge job.
To use a compute instance on a Snowball Edge, create a job and specify your AMIs.
You can do this using the AWS Snow Family Management Console
After your device arrives, you can start managing your AMIs and instances. You can manage your compute instances on a Snowball Edge through an Amazon EC2–compatible endpoint. This type of endpoint supports many of the Amazon EC2 CLI commands and actions for the AWS SDKs. You can't use the AWS Management Console on the Snowball Edge to manage your AMIs and compute instances.
When you're done with your device, return it to AWS. If the device was used in an import job, the data transferred using the Amazon S3 interface or the NFS interface is imported into Amazon S3. Otherwise, we perform a complete erasure of the device when it is returned to AWS. This erasure follows the National Institute of Standards and Technology (NIST) 800-88 standards.
-
Using encrypted AMIs on Snowball Edge devices is not supported.
-
Data in compute instances running on a Snowball Edge isn't imported into AWS.
Compute Instances on Clusters
You can use compute instances on clusters of Snowball Edge devices. The procedures and guidance for doing so are the same as for using compute instances on a standalone device.
When you create a cluster job with AMIs, a copy of each AMI exists on each node in the cluster. For that reason, there can only be 10 AMIs associated with a cluster of devices, regardless of the number of nodes on the cluster. When you launch an instance in a cluster, you declare the node to host the instance in your command, and the instance runs on a single node.
Clusters must be either compute optimized or storage optimized. You can have a cluster of compute optimized nodes, and some number of them can have GPUs. You can have a cluster made entirely of storage optimized nodes. A cluster can't be made of a combination of compute optimized nodes and storage optimized nodes.
Pricing for Compute Instances on Snowball Edge
There are additional costs associated with using compute instances. For more
information, see AWS Snowball Edge Pricing
Stopping EC2 Instances
To avoid accidentally deleting the Amazon EC2 instances that you create on your device,
don't shut down your instances from the operating system. For example, don't
use the shutdown
or reboot
commands. Shutting down an instance
from within the operating system has the same effect as calling the terminate-instances
command.
Instead, use the stop-instances command to suspend Amazon EC2 instances that you want to preserve.