Storj DCS
Search…
AWS CLI Advanced Options

Define an endpoint with AWS CLI v1

Installing pluginawscli-plugin-endpoint will also install the AWS CLI v1
If you use an AWS CLI v1 then you actually can install a plugin to allow to specify the endpoint:
Install awscli-plugin-endpoint:
1
~ % pip3 install awscli-plugin-endpoint
Copied!
Configure plugin in your ~/.aws/config file:
1
~ % aws configure set plugins.endpoint awscli_plugin_endpoint
Copied!
..and configure the default profile:
1
~ % aws configure set default.s3.endpoint_url https://gateway.storj.io
2
~ % aws configure set default.s3.multipart_threshold 60MB
3
~ % aws configure set default.s3.multipart_chunksize 60MB
Copied!
The resulting file would look like:
1
[plugins]
2
endpoint = awscli_plugin_endpoint
3
4
[default]
5
s3 =
6
endpoint_url = https://gateway.storj.io
7
multipart_threshold = 60MB
8
multipart_chunksize = 60MB
Copied!
Now you can use your AWS CLI without specifying of the endpoint:
1
~ % aws s3 ls
2
2021-01-08 19:41:13 demo
Copied!
To configure s3api endpoint you can use this command:
1
~ % aws configure set default.s3api.endpoint_url https://gateway.storj.io
Copied!
You also can use a different profile for Storj:
1
~ % aws configure set profile.storj.s3.endpoint_url https://gateway.storj.io
2
~ % aws configure set profile.storj.s3.multipart_threshold 1TB
Copied!
To use AWS CLI with a separate profile storj:
1
~ % aws s3 --profile storj ls
2
2021-01-08 19:41:13 demo
Copied!
Installing pluginawscli-plugin-endpoint will also install the AWS CLI v1!
Last modified 5mo ago
Copy link