climsoft / climsoft-api

API for Climsoft databases
MIT License
2 stars 4 forks source link

Configuration for S3 bucket for each named database #33

Open isedwards opened 2 years ago

isedwards commented 2 years ago

Currently we can only configure one S3 bucket that is used for all named database

CLIMSOFT_AWS_ACCESS_KEY_ID=
CLIMSOFT_AWS_SECRET_ACCESS_KEY=
CLIMSOFT_S3_BUCKET=climsoft-paper-archive
CLIMSOFT_AWS_REGION=eu-west-2

What would be the best way to achieve this (the secrets should remain in env vars)? https://github.com/climsoft/climsoft-api/blob/main/.env.example#L1-L4

See also #31