Skip to content

Commit

Permalink
#OBS-I369: fix: aws storage service changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JeraldJF committed Dec 3, 2024
1 parent 509f88d commit 3ed1018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api-service/src/services/CloudServices/AWSStorageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ export class AWSStorageService implements ICloudService {
const accessKeyId = _.get(config, "identity")
const secretAccessKey = _.get(config, "credential")
const endpoint = _.get(config, "endpoint")
const s3ForcePathStyle = _.get(config, "s3ForcePathStyle")
const configuration: any = { region, credentials: { accessKeyId, secretAccessKey } }
if(endpoint) {
configuration.endpoint = endpoint;
}
if (s3ForcePathStyle) {
configuration.s3ForcePathStyle = s3ForcePathStyle;
}
try {
this.client = new S3Client(configuration);
}
Expand Down

0 comments on commit 3ed1018

Please sign in to comment.