You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Run the command below to download the file from your Object Storage bucket to your local file system. Make sure to replace the placeholders with the appropriate values.
Copy file name to clipboardExpand all lines: storage/object/api-cli/object-storage-aws-cli.mdx
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,8 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
49
49
region = nl-ams
50
50
output = json
51
51
services = scw-nl-ams
52
+
53
+
[services scw-nl-ams]
52
54
s3 =
53
55
max_concurrent_requests = 100
54
56
max_queue_size = 1000
@@ -59,31 +61,44 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
59
61
# to upload files up to 5 TB.
60
62
multipart_chunksize = 10 MB
61
63
62
-
[services scw-nl-ams]
63
-
s3 =
64
+
s3api =
64
65
endpoint_url = https://s3.nl-ams.scw.cloud
65
66
```
66
67
67
68
<Messagetype="note">
68
69
Set the `endpoint_url` and `region` corresponding to the geographical region of your bucket. It can either be `fr-par` (Paris, France), `nl-ams` (Amsterdam, The Netherlands) or `pl-waw` (Warsaw, Poland).
69
70
</Message>
70
71
71
-
You can also configure additional profiles by adding new blocks under `[default]`. For example, you can add a second profile, `[profile two]`, to set a different region and endpoint from your default one:
72
+
5. Optionally, you can also configure additional profiles by adding new blocks under `[default]`. For example, you can add a second profile, `[profile two]`, to set a different region and services from your default one:
72
73
73
74
```
74
75
[default]
75
76
region = nl-ams
76
77
services = scw-nl-ams
77
-
...
78
-
79
78
80
79
[profile two]
81
80
region = fr-par
82
81
services = scw-fr-par
83
-
...
84
82
```
85
83
86
-
5. Optionally, open the `~/.aws/credentials` file and create other profiles by adding a block to indicate their credentials as follows:
84
+
6. Configure additional services by adding a new block after `[service scw-nl-ams]`. For example, you can create a second services block called `[services scw-fr-par]`, as shown below:
85
+
86
+
```
87
+
[services scw-fr-par]
88
+
s3 =
89
+
endpoint_url = https://s3.fr-par.scw.cloud
90
+
max_concurrent_requests = 100
91
+
max_queue_size = 1000
92
+
multipart_threshold = 50 MB
93
+
# Edit the multipart_chunksize value according to the file sizes that you
94
+
# want to upload. The present configuration allows to upload files up to
95
+
# 10 GB (1000 requests * 10 MB). For example, setting it to 5 GB allows you
96
+
# to upload files up to 5 TB.
97
+
multipart_chunksize = 10 MB
98
+
s3api =
99
+
endpoint_url = https://s3.fr-par.scw.cloud
100
+
101
+
5. Open the `~/.aws/credentials` file and create other profiles by adding a block to indicate their credentials as follows:
87
102
88
103
```
89
104
[default]
@@ -95,6 +110,10 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
95
110
aws_secret_access_key=<SECRET_KEY>
96
111
```
97
112
113
+
<Message type="important">
114
+
The profile names from the configuration file (here, `[profile two]`) and from the credentials file (here, `[two]`) must be identical.
115
+
</Message>
116
+
98
117
6. Run the following command to test your AWS CLI installation:
99
118
100
119
```
@@ -110,8 +129,4 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
110
129
```
111
130
</Message>
112
131
113
-
114
132
Refer to the [official documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) for more information on how to configure and manage your AWS CLI v2 settings and credentials.
0 commit comments