...
Code Block |
---|
language | text |
---|
title | ~/.aws/config |
---|
linenumbers | true |
---|
|
[default]
region = bhv
endpoint_url = https://hssrv2.dmawi.de:$PORT
ca_bundle = /Users/pasili001/Downloads/HSM_S3gw.cert.pem # < CORRECT ME >. using tilde (~) or $HOME in path does *NOT* work. |
Listing the buckets
Code Block |
---|
language | bash |
---|
title | listings |
---|
linenumbers | true |
---|
|
> aws s3 ls
2024-04-06 01:11:30 testdir
> aws s3 ls s3://testdir
2024-04-06 01:11:30 385458 tmp.csv |
...
Code Block |
---|
language | text |
---|
title | ~/.s3cfg |
---|
linenumbers | true |
---|
|
[default]
host_base = hssrv2.dmawi.de:635$PORT
host_bucket = hssrv2.dmawi.de:635$PORT
bucket_location = bhv
access_key = $GRP
secret_key = $SECRET
use_https = Yes
ca_certs_file = /Users/pasili001/Downloads/HSM_S3gw.cert.pem. # < CORRECT ME > |
Listing the buckets
Code Block |
---|
language | bash |
---|
title | listings |
---|
linenumbers | true |
---|
|
> s3cmd ls
2024-04-06 01:11 s3://testdir
> s3cmd ls s3://testdir
2024-04-06 01:11 385458 s3://testdir/tmp.csv |
...
Code Block |
---|
language | text |
---|
title | ~/.s3fs |
---|
linenumbers | true |
---|
|
key: $GRP
secret: $SECRET
client_kwargs:
endpoint_url: https://hssrv2.dmawi.de:635$PORT
verify: /Users/pasili001/Documents/HSM_S3gw.cert.pem
region_name: bhv |
...
Code Block |
---|
language | text |
---|
title | ~/.s3fs_boto |
---|
linenumbers | true |
---|
|
service_name: s3
aws_access_key_id: $GRP
aws_secret_access_key: $SECRET
endpoint_url: https://hssrv2.dmawi.de:$PORT
region_name: bhv
verify: /Users/pasili001/Documents/HSM_S3gw.cert.pem |
Write a utility function to read the config file
...