1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +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) {
return datasource.config.database
}
if (
datasource.source === IntegrationTypes.DYNAMODB ||
datasource.source === IntegrationTypes.S3
) {
return `${datasource.config.endpoint || "*"}:${datasource.config.region}`
if (datasource.source === IntegrationTypes.DYNAMODB) {
return `${datasource.config.endpoint}:${datasource.config.region}`
}
if (datasource.source === IntegrationTypes.S3) {
return datasource.config.endpoint
? `${datasource.config.endpoint}:${datasource.config.region}`
: `s3.${datasource.config.region}.amazonaws.com`
}
if (datasource.source === IntegrationTypes.ELASTICSEARCH) {
return datasource.config.url