Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
title~/.aws/config
linenumberstrue
[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
languagebash
titlelistings
linenumberstrue
> 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
languagetext
title~/.s3cfg
linenumberstrue
[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
languagebash
titlelistings
linenumberstrue
> 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
languagetext
title~/.s3fs
linenumberstrue
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
languagetext
title~/.s3fs_boto
linenumberstrue
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

...