Jump toUpdate content
Using Object Storage with the AWS-CLI
The AWS-CLI is an open-source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services. With minimal configuration, you can start using all of the functionalities provided by the AWS Management.
This page uses AWS-CLI v1. If you want to follow the installation procedure for v2, see the AWS-CLI documentation page.
The AWS-CLI is an open-source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services. With minimal configuration, you can start using all of the functionality provided by the AWS Management.
To interact with AWS,
awscli-plugin-endpoint need to be installed. The
awscli-plugin-endpoint is a great plugin to help people more easily access third-party S3 providers.
pip3 install awscli
pip3 install awscli-plugin-endpoint
Create the file
~/.aws/configby running the following command:
aws configure set plugins.endpoint awscli_plugin_endpoint
~/.aws/configin a text editor and edit it as follows:
endpoint = awscli_plugin_endpoint
region = nl-ams
endpoint_url = https://s3.nl-ams.scw.cloud
signature_version = s3v4
max_concurrent_requests = 100
max_queue_size = 1000
multipart_threshold = 50MB
# Edit the multipart_chunksize value according to the file sizes that you want to upload. The present configuration allows to upload files up to 10 GB (100 requests * 10MB). For example setting it to 5GB allows you to upload files up to 5TB.
multipart_chunksize = 10MB
endpoint_url = https://s3.nl-ams.scw.cloudImportant:
If you are using the AWS-CLI v2, you must include the path to the plugin in your configuration file. Add
cli_legacy_plugin_path = <path-to-plugin>to the
<path-to-plugin>with the corresponding path.Note:
regioncorresponding to the geographical region of your bucket. It can either be
nl-ams(Amsterdam, The Netherlands) or
Generate a credentials file using the command:
~/.aws/credentialsfile and configure your API key as follows:
Test your cluster.
aws s3 ls