Transferring Data from EC2 Compute Instances to S3 Buckets on the Same Snowball Edge - Amazon Snowball Edge Developer Guide
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Transferring Data from EC2 Compute Instances to S3 Buckets on the Same Snowball Edge

You can transfer data between compute instances and Amazon S3 buckets on the same Snowball Edge device. You do this by using the supported Amazon CLI commands and the appropriate endpoints. For example, assume that you want to move data from a directory in my sbe1.xlarge instance into the Amazon S3 bucket, myBucket on the same device. Assume also that you're using the Amazon S3 endpoint 192.0.2.1:8080. You use the following procedure.

Note

This procedure only works if you've followed the instructions in Configuring an AMI to Use SSH to Connect to Compute Instances Launched on the Device.

To transfer data between a compute instance and a bucket on the same Snowball Edge

  1. Use SSH to connect to your compute instance.

  2. Download and install the Amazon CLI. If your instance doesn't already have the Amazon CLI, download and install it. For more information, see Installing the Amazon Command Line Interface.

  3. Configure the Amazon CLI on your compute instance to work with the Amazon S3 endpoint on the Snowball Edge. For more information, see Getting and Using Local Amazon S3 Credentials.

  4. Use the supported Amazon S3 Amazon CLI commands to transfer data. For example:

    aws s3 cp ~/june2018/results s3://myBucket/june2018/results --recursive --endpoint http://192.0.2.1:8080