1
0
Fork 0
mirror of synced 2024-08-14 17:42:01 +12:00

Improve default S3 subtitle

This commit is contained in:
Mel O'Hagan 2023-09-12 10:25:10 +01:00
parent c860a75978
commit 260e0b6f99

View file

@ -27,11 +27,13 @@
if (datasource.source === IntegrationTypes.COUCHDB) { if (datasource.source === IntegrationTypes.COUCHDB) {
return datasource.config.database return datasource.config.database
} }
if ( if (datasource.source === IntegrationTypes.DYNAMODB) {
datasource.source === IntegrationTypes.DYNAMODB || return `${datasource.config.endpoint}:${datasource.config.region}`
datasource.source === IntegrationTypes.S3 }
) { if (datasource.source === IntegrationTypes.S3) {
return `${datasource.config.endpoint || "*"}:${datasource.config.region}` return datasource.config.endpoint
? `${datasource.config.endpoint}:${datasource.config.region}`
: `s3.${datasource.config.region}.amazonaws.com`
} }
if (datasource.source === IntegrationTypes.ELASTICSEARCH) { if (datasource.source === IntegrationTypes.ELASTICSEARCH) {
return datasource.config.url return datasource.config.url