Skip to content

Commit 77ddda7

Browse files
committed
chore(gen): s3 update
1 parent 0a766c1 commit 77ddda7

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

storage/object/api-cli/enable-sse-c.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,16 @@ The [AWS S3 CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/refere
129129

130130
2. Run the command below to copy a local file to your Object Storage bucket. Make sure to replace the placeholders with the appropriate values.
131131
```sh
132-
aws s3 cp <path/to/your/file> s3://<your-bucket-name>/<your-object-key> --sse-c AES256 --sse-c-key fileb://ssec.key
132+
aws s3 cp <path/to/your/file> s3://<your-bucket-name>/<your-object-key> \
133+
--sse-c AES256 \
134+
--sse-c-key fileb://ssec.key
133135
```
134136

135137
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.
136138
```sh
137-
aws s3 cp s3://<your-bucket-name>/<your-object-key> <path/to/your/file> --sse-c AES256 --sse-c-key fileb://ssec.key
139+
aws s3 cp s3://<your-bucket-name>/<your-object-key> <path/to/your/file> \
140+
--sse-c AES256 \
141+
--sse-c-key fileb://ssec.key
138142
```
139143

140144
<Message type="note">

storage/object/api-cli/object-storage-aws-cli.mdx

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
4949
region = nl-ams
5050
output = json
5151
services = scw-nl-ams
52+
53+
[services scw-nl-ams]
5254
s3 =
5355
max_concurrent_requests = 100
5456
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
5961
# to upload files up to 5 TB.
6062
multipart_chunksize = 10 MB
6163
62-
[services scw-nl-ams]
63-
s3 =
64+
s3api =
6465
endpoint_url = https://s3.nl-ams.scw.cloud
6566
```
6667

6768
<Message type="note">
6869
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).
6970
</Message>
7071

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:
7273

7374
```
7475
[default]
7576
region = nl-ams
7677
services = scw-nl-ams
77-
...
78-
7978
8079
[profile two]
8180
region = fr-par
8281
services = scw-fr-par
83-
...
8482
```
8583

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:
87102
88103
```
89104
[default]
@@ -95,6 +110,10 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
95110
aws_secret_access_key=<SECRET_KEY>
96111
```
97112
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+
98117
6. Run the following command to test your AWS CLI installation:
99118
100119
```
@@ -110,8 +129,4 @@ The AWS-CLI is an open-source tool built on top of the [AWS SDK for Python (Boto
110129
```
111130
</Message>
112131

113-
114132
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.
115-
116-
117-

0 commit comments

Comments
 (0)