Mortar has joined Datadog, the leading SaaS-based monitoring service for cloud applications. Read more about what this means here.

Connect and Integrate
Uploading Data to Amazon S3

Uploading Data to S3

The most convenient way to use Mortar is to have your data in Amazon's S3 storage. There are many good utilities and libraries for uploading data to S3. Here we provide a few options for getting started.

Connect to Amazon S3

In order to upload your data to S3 you will need to know your AWS Access Key and AWS Secret Access Key.

You can find your AWS keys on the Amazon Security Credentials page in the Access Credentials section of the AWS Console site.

AWS Key Console


Uploading with Transmit

Transmit is a GUI tool for moving files to various locations, including FTP or SFTP servers and Amazon S3.

Download and install Transmit. Launch it, and provide your AWS Access Key and AWS Secret Access Key. You can leave the Initial Path field empty.

Transmit AWS Key Entry

Drop your data files into an S3 bucket. You can view them either through Transmit, or in the AWS Management Console.


Uploading with s3cmd

S3cmd is a command line tool for managing data in Amazon S3.

Download and install s3cmd.

On the command line run

$ s3cmd --configure

This will prompt you for you AWS access keys. Once your keys are configured you can make a bucket by running

$ s3cmd mb s3://my-new-bucket-name

You can then move data into that bucket using

$ s3cmd put file.xml s3://my-new-bucket-name/file.xml

View your files either by listing the contents of your bucket

$ s3cmd ls s3://my-new-bucket-name

or via the AWS Management Console.


Uploading Inside Your Application

Alternately, if you want to upload data from within your application, you'll want an S3 library. There are good S3 libraries in almost every programming language. Mortar recommends: