AWS CLI
AWS CLI, or the AWS Command Line Interface, is the software for managing AWS services and has been integrated with our Object Storage for managing your buckets using commands from Amazon’s official documentation.Install AWS CLI
1. Follow the instructions in the Amazon article to install the latest version of the AWS CLI. 2. To verify that the installation was successful, run the aws —version command in the terminal.Configure your storage for use with AWS CLI
1. Enter the aws configure command, and a configuration wizard will be launched. 2. You need to provide the following information:- Access Key : Enter the access key you received after creating the storage in your account.
- Secret Key : Enter the secret key you received after creating the storage in your account.
- Default region name : Enter your storage region, for example, s-ed1.
<https://s-ed1.cloud.gcore.lu>
with your storage endpoint, which can be found in the “S3 service URLs and default region names” guide.
Since there are no buckets in the storage, the command will not list anything. However, if there are no errors, you have configured the credentials correctly.
S3cmd
S3cmd is a free command line tool for uploading, retrieving, and managing data in Amazon S3 and other cloud storage services. Please use the commands described in the official S3cmd documentation.Install S3cmd
1. Go to the “Download” section in the S3cmd documentation. 2. Download the repository for your operating system. 3. Install the latest version of S3cmd.Configure your storage for use with S3cmd
Configure with the wizard
1. Enter the following command to launch the configuration wizard:- Access Key : Enter the access key you received after creating the storage in your account.
- Secret Key : Enter the secret key you received after creating the storage in your account.
- S3 Endpoint : Enter your storage URL, for example, s-ed1.cloud.gcore.lu.
- DNS-style bucket+hostname : Enter your storage URL, for example, s-ed1.cloud.gcore.lu. Optionally specify the port template for accessing a bucket in the format: s-ed1.cloud.gcore.lu:80.
Configure without the wizard
This method allows you to enter configuration data in one line without using a wizard. Enter the command:- 12*****6DEF is the access key you received after creating the storage in your account.
- EXAMPLE***** is the secret key you received after creating the storage in your account.
- s-ed1.cloud.gcore.lu is the storage URL.
AWS JavaScript SDK
The methods described below are relevant for AWS JavaScript SDK version 2.742.0.Connect AWS JavaScript SDK
To connect the interface with your storage, add AWS SDK to your HTML page according to the following example:Manage storage with AWS JavaScript SDK
Configure storage and create an S3 bucket
Open the configuration file (./js/index2.js) and specify the data of your storage and future bucket:- test is the name of the future bucket;
<https://s-ed1.cloud.gcore.lu>
is the storage URL;- 1234 is the access key you received when creating the storage in the Gcore Customer Portal.
- 5678 is the secret key you received when creating the storage in the Gcore Customer Portal.