Skip to content

Commit bfa10c2

Browse files
author
Dominik Matic
committed
Add clarity and more information to the magento 2 command section for setting up object storage
1 parent 631ef5d commit bfa10c2

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,44 @@ bin/magento setup:config:set \
3232
--remote-storage-bucket="my_bucket_name" \
3333
--remote-storage-region="provider-region" \
3434
--remote-storage-key="abcd1234" \
35-
--remote-storage-secret="abcd1234" \
35+
--remote-storage-secret="1234abcd" \
3636
--remote-storage-endpoint="https://my-s3-compatible.endpoint.com"
3737
```
3838

39-
In the case of Hypernode Object Storage you can get the relevant information by running `hypernode-object-storage info` with the `--with-credentials` flag:
39+
In the case of Hypernode Object Storage, the bucket name is `main`, and the region is `EU`. The other remaining parameters you can get by running `hypernode-object-storage info` with the `--with-credentials` flag:
4040

4141
```console
4242
app@testapp ~ # hypernode-object-storage info --with-credentials
4343
+--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+
4444
| UUID | Name | Plan | Hypernodes | Management URL | Access Key | Secret Key |
4545
+--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+
46-
| 12345678-9012-3456-b7e3-19ab43df4a23 | testappbucket1 | OS200GB | testapp | https://example.ams.objectstore.eu | abcd1234 | abcd1234 |
46+
| 12345678-9012-3456-b7e3-19ab43df4a23 | testappbucket1 | OS200GB | testapp | https://example.ams.objectstore.eu | abcd1234 | 1234abcd |
4747
+--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+
4848
```
4949

50+
So, in that case, the command would look like this:
51+
52+
```bash
53+
bin/magento setup:config:set \
54+
--remote-storage-driver="aws-s3" \
55+
--remote-storage-bucket="main" \
56+
--remote-storage-region="EU" \
57+
--remote-storage-key="abcd1234" \
58+
--remote-storage-secret="1234abcd" \
59+
--remote-storage-endpoint="https://example.ams.objectstore.eu"
60+
```
61+
5062
**AWS S3**
5163

64+
If you have an AWS S3 bucket, the command is somewhat simpler, you just need to know what your bucket name is, your aws region and your aws access and secret key.
65+
5266
```bash
5367
bin/magento setup:config:set \
5468
--remote-storage-driver="aws-s3" \
5569
--remote-storage-bucket="my_bucket_name" \
5670
--remote-storage-region="my-aws-region" \
5771
--remote-storage-key="abcd1234" \
58-
--remote-storage-secret="abcd1234"
72+
--remote-storage-secret="1234abcd"
5973
```
6074

6175
## Syncing the files (efficiently)

0 commit comments

Comments
 (0)