Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Additionally your application can leverage the Swift API directly - either using curl or existing libraries (such as Boto for Python).

S3 API


Our OpenStack Swift environment has support for S3 API compatibility. This means that any application or library which supports Amazon S3 should be able to be used in our Swift environment.

To begin using the S3 API, you first need to obtain a set of "EC2 Credentials". This is a set of credentials formatted in the same way as Amazon's credentials. You can download your EC2 Credentials by going here (https://cloud.cybera.ca/project/api_access/) and clicking "Download EC2 Credentials". This will trigger a zip file to be downloaded to your workstation.

Unzip the file and look inside the ec2rc.sh file using a text editor of your choice. Inside this file, you will see a bunch of variables, including:

Code Block
export EC2_ACCESS_KEY=foo
export EC2_SECRET_KEY=bar

These are your EC2 credentials.

Note

Most Amazon applications and libraries use AWS_ACCESS_KEY_ID instead of EC2_ACCESS_KEY and AWS_SECRET_ACCESS_KEY instead of EC2_SECRET_KEY.


GUI Applications

Cyberduck

Cyberduck is available for Mac OS X and Windows.In order to use Cyberduck with RAC’s Object Storage

S3 Compatibility

To use Cyberaduck using the standard S3 compatibility, first obtain your EC2 Credentials, as described in the S3 API of this document.

Open Cyberduck and create a new Amazon S3 connection. Fill in the following information:

  • Server: yyc.cloud.cybera.ca (for the Calgary region) or yeg.cloud.cybera.ca (for the Edmonton region).
  • Port: 8080
  • Access Key ID: Your EC2_ACCESS_KEY
  • Secret Access Key: Your EC2_SECRET_KEY

OpenStack Swift Native

To use Cyberduck with the Swift API, you’ll need to download a special profile to set some extra settings for bookmarks in Cyberduck. You can download the generic profile or a profile we have created that is specific to RAC.

...