As agreed on the current implementation stage we'll be doing one extra read request to MongoDB, which will increase traffic and might increase response times, but it should be acceptable at current stage. More advanced implementation significantly complicates things, which is not preferred at the moment.
Add support to the deployments service (both OS and enterprise) to:
get and set the AWS settings (region, bucket, uri, key, secret, token)
use the settings above instead of the ones from the configuration file
if no setting is found in the database, use the configuration from the config file
Acceptance criterias:
API documentations to get and set the AWS settings above
API implementation to get and set the AWS settings above
Unit and (if needed acceptance) tests
Update to the service to use the settings above if present