ANS Documentation

Improve This Doc
  • Cloud
    • eCloud VPC
    • eCloud Private
    • eCloud Public
    • eCloud Vault
      • Connecting to eCloud Vault
      • s3cmd
      • Basic s3website API usage
      • eCloud Vault Integration Documentation
      • Configuring cPanel Backups using the S3 Interface
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Cloud >
  • eCloud Vault >
  • Connecting to eCloud Vault

Connecting to eCloud Vault¶

There are two primary ways of interacting with eCloud Vault.

One is through “drag and drop” in ANS Portal.

The second is the most powerful way of accessing eCloud Vault, and the one that most people will probably need. This is via API, using the access and secret key pair found in the eCloud Vault section in ANS Portal.

These keys will allow you to access the API endpoint found here: http://vault.ecloud.co.uk/

If you aren’t familiar with the S3 API specification, information can be found here.

Your key pair will also allow you to access your eCloud Vault buckets through various S3-enabled third party applications. Though UKFast can’t offer support on your configuration or use of these applications (see below), a few options are:

  • Cyberduck - Windows, Mac

  • s3cmd - Windows, Linux and Mac CLI tool (further details below)

  • Duplicati - Windows backup utility

  • Expandrive - Windows backup utility

  • S3Anywhere - Android s3 client

These applications can typically all be configured by setting the S3 host/address as vault.ecloud.co.uk and inputting your access and secret keys.

s3cmd¶

While UKFast does not offer support for 3rd-party clients, internally we use s3cmd to test functionality and debug issues with eCloud Vault. As such, if you contact UKFast Support with an eCloud Vault issue you may be asked to replicate the problem with s3cmd. If you’re not used to using command-line applications we appreciate it can be frustrating to use, but it’s a useful comparison against other clients.

You must configure s3cmd before you use it. To do this, on Linux and MacOS, create a file in your home directory called .s3cfg with the following content. On Windows this should be in C:\Users\[username]\AppData\Roaming\s3cmd.ini.

[default]
access_key = YOUR_ACCESS_KEY
secret_key = YOUR_SECRET_KEY
host_base = vault.ecloud.co.uk
host_bucket = %(bucket)s.vault.ecloud.co.uk
human_readable_sizes = True
use_https = True

# If your `s3cmd` version is 1.6.1 or greater, you should add the following line
signature_v2 = True

As noted in the configuration for version 1.6.1 or above, you will need to add signature_v2 = True to your configuration file or you may encounter SignatureDoesNotMatch errors when uploading files with spaces in the filename.

Once you have the configuration in place, you can start to use s3cmd to view and change your buckets and files. Some example usage:

  • List your buckets: s3cmd ls

  • Create a new bucket: s3cmd mb s3://bucketname

  • List the contents of a bucket: s3cmd ls s3://bucketname/

  • List the contents of a ‘directory’ (known as ‘prefix’): s3cmd ls s3://bucketname/path/ (note trailing slash)

  • Upload a file to a bucket: s3cmd put myfile.txt s3://bucketname/path/myfile.txt

  • Make a file public: s3cmd setacl --acl-public s3://bucketname/path/myfile.txt (you can also specify the --acl-public option during upload)

  • Make a file private: s3cmd setacl --acl-private s3://bucketname/path/myfile.txt

  • Remove a file: s3cmd del s3://bucketname/path/myfile.txt

  • Remove a bucket and all files in it (danger!): s3cmd rb --recursive s3://bucketname

Next Article > Basic s3website API usage

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ