AWS CLI with LIBSAFE Advanced

AWS CLI is a unified tool to manage AWS services. It is frequently the tool used to transfer data in and out of AWS S3. It works with any S3 compatible cloud storage service and it is the recommended way to upload or download content when using LIBSAFE Advanced.

In this recipe we will learn how to configure and use AWS CLI to manage data with LIBSAFE Advanced.

1. Prerequisites

  • A working LIBSAFE Advanced instance

  • Your LIBSAFE Advanced S3 access and secret keys.

2. Installation

Install AWS CLI from https://aws.amazon.com/cli/

3. Configuration

To configure AWS CLI, type aws configure and specify the LIBSAFE Advanced key information.

Replace shown keys below with your own keys:

$ aws configure
AWS Access Key ID [None]: <your access key>
AWS Secret Access Key [None]: <your secret key>
Default region name [None]: (just press ENTER here for None)
Default output format [None]: (just press ENTER here for None)

4. Commands

Depending on the region and other settings, LIBSAFE Advanced keeps your data container inside a particular S3 Bucket. All data containers in your instance may use the same S3 bucket or not.

Path to your files is created using the following convention:

To obtain the Bucket Name associated to the data container you want to use to begin uploading any file see Getting your S3 bucket name.

List your containers

This will list the data containers you have in a given S3 bucket:

Note that the 1/, 2/, etc are your container IDs. Before the container ID, you can find a PRE or a date and time, depending on the case.

List contents inside a container

Copy files to your container

Up/download recursively

​Synchronize a local/remote folder

This will upload/download changed or new files only, and will not delete files not in source.

Delete files from your container

Last updated