README.md 756 Bytes
Newer Older
1
2
3
4
5
6
7
8
## S3 python client examples

specify connection data

```
export AWS_ACCESS_KEY_ID="${MY_AWS_ACCESS_KEY_ID}"
export AWS_SECRET_ACCESS_KEY="${MY_AWS_SECRET_ACCESS_KEY}"
```
Christian Salzmann-Jaeckel's avatar
Christian Salzmann-Jaeckel committed
9

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## s4cmd examples

S4cmd supports the regular commands you might expect for fetching and storing
files in S3: `ls`, `put`, `get`, `cp`, `mv`, `sync`, `del`, `du`.

Details see [README.md](/usr/share/doc/s4cmd/README.md.gz)

```
sudo apt install s4cmd
export S3_ACCESS_KEY_ID="${MY_AWS_ACCESS_KEY_ID}"
export S3_SECRET_ACCESS_KEY="${MY_AWS_SECRET_ACCESS_KEY}"
s4cmd  --endpoint-url=https://rise-s3.zib.de ls
```


Christian Salzmann-Jaeckel's avatar
Christian Salzmann-Jaeckel committed
25
26
27
28
29
### Links

* [ceph S3 examples](https://github.com/ronaldddilley/ceph-s3-examples)
* [boto3 amazon](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html)